mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-31 02:08:57 +00:00
Add checks for blacklisted users
This commit is contained in:
+2
-2
@@ -788,12 +788,12 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
$res = self::getByUsername($userName);
|
||||
if ($res) {
|
||||
if ($res !== null) {
|
||||
return self::ERR_SIGNUP_UNAMEINUSE;
|
||||
}
|
||||
|
||||
$res = self::getByEmail($email);
|
||||
if ($res) {
|
||||
if ($res !== null) {
|
||||
return self::ERR_SIGNUP_EMAILINUSE;
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user