CHANGE_ added error message in login apis : GWM
This commit is contained in:
parent
3091fe3154
commit
42b1f2b934
@ -80,8 +80,8 @@ class RestAuthenticationController extends AdminController
|
|||||||
$result = ['user_verification' => true , 'otp'=>$randomNumber];
|
$result = ['user_verification' => true , 'otp'=>$randomNumber];
|
||||||
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||||
} else {
|
} else {
|
||||||
$result = ['user_verification' => false];
|
$result = ['user_verification' => false , 'message' => "User not found"];
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "User not found"],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
@ -139,8 +139,8 @@ class RestAuthenticationController extends AdminController
|
|||||||
$result = ['user_verification' => true , 'otp'=>$randomNumber];
|
$result = ['user_verification' => true , 'otp'=>$randomNumber];
|
||||||
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||||
} else {
|
} else {
|
||||||
$result = ['user_verification' => false];
|
$result = ['user_verification' => false , 'message' => "User not found"];
|
||||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "User not found"],200);
|
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
||||||
|
|
||||||
}
|
}
|
||||||
} catch (\Throwable $th) {
|
} catch (\Throwable $th) {
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user