register method
- UserPassword? password,
- UserLogin? login,
Creates a new one-time account right away.
Implementation
Future<void> register({UserPassword? password, UserLogin? login}) async {
try {
await _authService.register(password: password, login: login);
(onSuccess ?? router.home)();
} on SignUpException catch (e) {
this.login.error.value = e.toMessage();
} on ConnectionException {
MessagePopup.error('err_data_transfer'.l10n);
} catch (e) {
MessagePopup.error(e);
rethrow;
}
}