25-10-2/2
This commit is contained in:
@@ -121,7 +121,7 @@ class PhoneAuthHelper {
|
|||||||
final data = (response);
|
final data = (response);
|
||||||
if (data != 'failure') {
|
if (data != 'failure') {
|
||||||
// Registration successful, log user in
|
// Registration successful, log user in
|
||||||
await _addTokens();
|
|
||||||
await _handleSuccessfulLogin(data['message']['data']);
|
await _handleSuccessfulLogin(data['message']['data']);
|
||||||
} else {
|
} else {
|
||||||
mySnackeBarError(
|
mySnackeBarError(
|
||||||
@@ -144,7 +144,7 @@ class PhoneAuthHelper {
|
|||||||
box.write(BoxName.email, userData['email']);
|
box.write(BoxName.email, userData['email']);
|
||||||
box.write(BoxName.phone, userData['phone']);
|
box.write(BoxName.phone, userData['phone']);
|
||||||
box.write(BoxName.isVerified, '1');
|
box.write(BoxName.isVerified, '1');
|
||||||
|
await _addTokens();
|
||||||
await Get.put(LoginController()).loginUsingCredentials(
|
await Get.put(LoginController()).loginUsingCredentials(
|
||||||
box.read(BoxName.passengerID).toString(),
|
box.read(BoxName.passengerID).toString(),
|
||||||
box.read(BoxName.email).toString(),
|
box.read(BoxName.email).toString(),
|
||||||
|
|||||||
Reference in New Issue
Block a user