remove MD5 hashing, send plaintext secret key for bcrypt verification

This commit is contained in:
dmit.b
2026-06-25 11:56:08 +03:00
parent 4e7a9d823b
commit 86e9b5a22a
4 changed files with 18 additions and 21 deletions
+2 -2
View File
@@ -41,14 +41,14 @@ class AuthProvider with ChangeNotifier {
Future<void> register(
String login,
String password,
String secretKeyHash,
String secretKey,
) async {
_isLoading = true;
_error = '';
notifyListeners();
try {
await _authService.register(login, password, secretKeyHash);
await _authService.register(login, password, secretKey);
notifyListeners();
} catch (e) {
_error = e.toString();