mirror of
https://github.com/NNTmux/newznab-tmux.git
synced 2026-08-29 01:08:56 +00:00
Allow notes to be empty
This commit is contained in:
+10
-6
@@ -578,13 +578,17 @@ class User extends Authenticatable
|
||||
}
|
||||
|
||||
/**
|
||||
* Add a new user.
|
||||
*
|
||||
* @return bool|int
|
||||
*
|
||||
* @throws \Exception
|
||||
* @param string $userName
|
||||
* @param string $password
|
||||
* @param string $email
|
||||
* @param int $role
|
||||
* @param string|null $notes
|
||||
* @param string $host
|
||||
* @param int $invites
|
||||
* @param int $invitedBy
|
||||
* @return false|int|mixed
|
||||
*/
|
||||
public static function add(string $userName, string $password, string $email, int $role, string $notes = '', string $host = '', int $invites = Invitation::DEFAULT_INVITES, int $invitedBy = 0)
|
||||
public static function add(string $userName, string $password, string $email, int $role, string|null $notes = '', string $host = '', int $invites = Invitation::DEFAULT_INVITES, int $invitedBy = 0)
|
||||
{
|
||||
$password = self::hashPassword($password);
|
||||
if (! $password) {
|
||||
|
||||
Reference in New Issue
Block a user