Frontend first draft
This commit is contained in:
12
frontend/pweb/lib/services/auth.dart
Normal file
12
frontend/pweb/lib/services/auth.dart
Normal file
@@ -0,0 +1,12 @@
|
||||
|
||||
class AuthenticationService {
|
||||
Future<bool> verifyTwoFactorCode(String code) async {
|
||||
await Future.delayed(const Duration(seconds: 2));
|
||||
|
||||
if (code == '000000') {
|
||||
return true;
|
||||
} else {
|
||||
throw Exception('Wrong Code'); //TODO Localize
|
||||
}
|
||||
}
|
||||
}
|
||||
Reference in New Issue
Block a user