|
|
|
|
@ -190,12 +190,12 @@ class _LoginPageState extends State<LoginPage> {
|
|
|
|
|
}
|
|
|
|
|
|
|
|
|
|
Future<void> _login() async {
|
|
|
|
|
FocusScope.of(context).unfocus();
|
|
|
|
|
if (!_formKey.currentState.validate()) return;
|
|
|
|
|
if (privacyPolicyChecked == false) {
|
|
|
|
|
"You must agree to privacy policy".showToast;
|
|
|
|
|
return;
|
|
|
|
|
}
|
|
|
|
|
FocusScope.of(context).unfocus();
|
|
|
|
|
_formKey.currentState.save();
|
|
|
|
|
int status = await _userProvider.login(context: context, user: _user);
|
|
|
|
|
if (status >= 200 && status < 300 && _userProvider.user.isAuthenticated ?? false) {
|
|
|
|
|
|