We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 9933740 commit 1a428b9Copy full SHA for 1a428b9
app/Repositories/Backend/Access/User/UserRepository.php
@@ -324,20 +324,21 @@ public function mark($user, $status)
324
* @param $input
325
* @param $user
326
*
327
- * @return null
328
* @throws GeneralException
+ *
329
+ * @return null
330
*/
331
protected function checkUserByEmail($input, $user = null)
332
{
333
//Figure out if email is not the same
334
if ($user && $user->email === $input['email']) {
335
return;
336
}
-
337
+
338
//Check to see if email exists
339
if ($this->query()->where('email', '=', $input['email'])->withTrashed()->exists()) {
340
throw new GeneralException(trans('exceptions.backend.access.users.email_error'));
- }
341
+ }
342
343
344
/**
0 commit comments