forked from eatvio/eatvio_app
fix: reg
This commit is contained in:
@@ -86,10 +86,14 @@ class _AuthScreenState extends State<AuthScreen> {
|
||||
await _controller.runJavaScript(jsChannelAuthScript);
|
||||
} else if (url.contains('profile')) {
|
||||
if (credentialsInStorage) {
|
||||
await CredentialsStorage.saveCredentials(email, password);
|
||||
await loginInApplication();
|
||||
} else {
|
||||
await logoutFromWeb();
|
||||
if (email.isNotEmpty && password.isNotEmpty) {
|
||||
await CredentialsStorage.saveCredentials(email, password);
|
||||
await loginInApplication();
|
||||
} else {
|
||||
await logoutFromWeb();
|
||||
}
|
||||
}
|
||||
} else {
|
||||
if (tokenInStorage && credentialsInStorage) {
|
||||
|
||||
Reference in New Issue
Block a user