dkforest

A forum and chat platform (onion)
git clone https://git.dasho.dev/n0tr1v/dkforest.git
Log | Files | Refs | LICENSE

commit 909870ae1475c3992da8b22dc0ceb6f5547a0c8b
parent 2fb2d184083bdc4b3219b22b183b7b705541d0ab
Author: n0tr1v <n0tr1v@protonmail.com>
Date:   Wed, 28 Jun 2023 13:37:01 -0700

rename var

Diffstat:
Mpkg/database/tableUsers.go | 4++--
1 file changed, 2 insertions(+), 2 deletions(-)

diff --git a/pkg/database/tableUsers.go b/pkg/database/tableUsers.go @@ -561,7 +561,7 @@ func (d *DkfDB) CreateZeroUser() (User, UserErrors) { // skipUsernameValidation: entirely skip username validation (for "0" user) // isFirstUser: less strict username validation; can use "admin"/"n0tr1v" usernames -func (d *DkfDB) createUser(usernameStr, password, repassword, gpgPublicKey string, isAdmin, verified, temp, isFirstUser, skipUsernameValidation bool, registrationDuration int64, signupInfoEnc string) (User, UserErrors) { +func (d *DkfDB) createUser(usernameStr, password, repassword, gpgPublicKey string, isAdmin, verified, isGuestAcc, isFirstUser, skipUsernameValidation bool, registrationDuration int64, signupInfoEnc string) (User, UserErrors) { username := Username(strings.TrimSpace(usernameStr)) var errs UserErrors if !skipUsernameValidation { @@ -575,7 +575,7 @@ func (d *DkfDB) createUser(usernameStr, password, repassword, gpgPublicKey strin } var newUser User if !errs.HasError() { - newUser.Temp = temp + newUser.Temp = isGuestAcc newUser.Role = "member" newUser.Username = username newUser.Password = hashedPassword