unified code verification service
This commit is contained in:
@@ -1,4 +1,5 @@
|
||||
import 'package:logging/logging.dart';
|
||||
import 'package:pshared/api/requests/verification/resend.dart';
|
||||
import 'package:pshared/service/device_id.dart';
|
||||
|
||||
import 'package:share_plus/share_plus.dart';
|
||||
@@ -59,7 +60,7 @@ class AccountService {
|
||||
|
||||
static Future<void> resendVerificationEmail(String email) async {
|
||||
_logger.fine('Resending verification email');
|
||||
await getPUTResponse(_objectType, 'email', {'login': email});
|
||||
await getPUTResponse(_objectType, 'email', ResendVerificationEmailRequest.build(login: email).toJson());
|
||||
}
|
||||
|
||||
static Future<void> verifyEmail(String token) async {
|
||||
|
||||
Reference in New Issue
Block a user