hbbs

bbs.hlirc.net
Log | Files | Refs | README | LICENSE

commit 637842333364948dcdff6f09cc1de276bf8c5a5c
parent 7a625f9a4a9610e72455ce127ead78358b5447f8
Author: hhvn <hayden@haydenvh.com>
Date:   Tue,  2 Feb 2021 23:33:31 +0000

include/userinfo.sh: update reserved usernames list

Diffstat:
Minclude/userinfo.sh | 5+++--
1 file changed, 3 insertions(+), 2 deletions(-)

diff --git a/include/userinfo.sh b/include/userinfo.sh @@ -32,8 +32,9 @@ checknuser(){ [ "$(userget $1 expiry)" != "" ] && [ $(datediff $(userget $1 expiry) 2021-02-02) -gt -1 ] && rm $datadir/users/$1 [ -f $datadir/users/$1 ] && error "user already exists" && return 1 [ "$1" = "new" ] && error "user \"new\" reserved" && return 1 - [ "$1" = "new" ] && error "user \"admin\" reserved" && return 1 - [ "$1" = "new" ] && error "user \"root\" reserved" && return 1 + [ "$1" = "admin" ] && error "user \"admin\" reserved" && return 1 + [ "$1" = "root" ] && error "user \"root\" reserved" && return 1 + [ "$1" = "recover" ] && error "user \"recover\" reserved" && return 1 return 0 }