Merge pull request #45 from openclassify/vedat2

withTrashed added
This commit is contained in:
Fatih Alp 2019-07-16 14:29:03 +03:00 committed by GitHub
commit 6c224734e8
No known key found for this signature in database
GPG Key ID: 4AEE18F83AFDEB23

View File

@ -165,7 +165,7 @@ class UserAuthenticator
} }
if ($users->findByEmail($all['email']) or $users->findByUsername($all['username'])) { if (User::withTrashed()->where('email',$all['email'])->first() or User::withTrashed()->where('username',$all['username'])->first()) {
return response()->json(['status' => 'error', 'message' => 'This Username or Email Registered!']); return response()->json(['status' => 'error', 'message' => 'This Username or Email Registered!']);
} }
$opassword = str_random(8); $opassword = str_random(8);