25-10-2/2

This commit is contained in:
Hamza-Ayed
2025-10-02 20:29:22 +03:00
parent c48627a175
commit 729378c507

View File

@@ -121,7 +121,7 @@ class PhoneAuthHelper {
final data = (response);
if (data != 'failure') {
// Registration successful, log user in
await _addTokens();
await _handleSuccessfulLogin(data['message']['data']);
} else {
mySnackeBarError(
@@ -144,7 +144,7 @@ class PhoneAuthHelper {
box.write(BoxName.email, userData['email']);
box.write(BoxName.phone, userData['phone']);
box.write(BoxName.isVerified, '1');
await _addTokens();
await Get.put(LoginController()).loginUsingCredentials(
box.read(BoxName.passengerID).toString(),
box.read(BoxName.email).toString(),