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];
|
||||
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||
} else {
|
||||
$result = ['user_verification' => false];
|
||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "User not found"],200);
|
||||
$result = ['user_verification' => false , 'message' => "User not found"];
|
||||
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
||||
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
@ -139,8 +139,8 @@ class RestAuthenticationController extends AdminController
|
||||
$result = ['user_verification' => true , 'otp'=>$randomNumber];
|
||||
return $this->respond(['status' => 'success','code' => 200,'data' => $result],200);
|
||||
} else {
|
||||
$result = ['user_verification' => false];
|
||||
return $this->respond(['status' => 'failed','code' => 404,'data' => "User not found"],200);
|
||||
$result = ['user_verification' => false , 'message' => "User not found"];
|
||||
return $this->respond(['status' => 'failed','code' => 404,'data' => $result],200);
|
||||
|
||||
}
|
||||
} catch (\Throwable $th) {
|
||||
|
||||
Loading…
Reference in New Issue
Block a user