Minor update
This commit is contained in:
parent
45e720917d
commit
5dbeb36be9
2 changed files with 4 additions and 4 deletions
|
@ -87,7 +87,7 @@ class SrpAttributes {
|
|||
final int memLimit;
|
||||
final int opsLimit;
|
||||
final String kekSalt;
|
||||
final bool emailMFA;
|
||||
final bool isEmailMFAEnabled;
|
||||
|
||||
SrpAttributes({
|
||||
required this.srpUserID,
|
||||
|
@ -95,7 +95,7 @@ class SrpAttributes {
|
|||
required this.memLimit,
|
||||
required this.opsLimit,
|
||||
required this.kekSalt,
|
||||
required this.emailMFA,
|
||||
required this.isEmailMFAEnabled,
|
||||
});
|
||||
|
||||
factory SrpAttributes.fromMap(Map<String, dynamic> map) {
|
||||
|
@ -105,7 +105,7 @@ class SrpAttributes {
|
|||
memLimit: map['attributes']['memLimit'],
|
||||
opsLimit: map['attributes']['opsLimit'],
|
||||
kekSalt: map['attributes']['kekSalt'],
|
||||
emailMFA: map['attributes']['emailMFA'],
|
||||
isEmailMFAEnabled: map['attributes']['isEmailMFAEnabled'],
|
||||
);
|
||||
}
|
||||
}
|
||||
|
|
|
@ -66,7 +66,7 @@ class _LoginPageState extends State<LoginPage> {
|
|||
bool isEmailVerificationEnabled = true;
|
||||
try {
|
||||
attr = await UserService.instance.getSrpAttributes(_email!);
|
||||
isEmailVerificationEnabled = attr.emailMFA;
|
||||
isEmailVerificationEnabled = attr.isEmailMFAEnabled;
|
||||
} catch (e) {
|
||||
if (e is! SrpSetupNotCompleteError) {
|
||||
_logger.severe('Error getting SRP attributes', e);
|
||||
|
|
Loading…
Add table
Reference in a new issue