fixed date field value extraction and DOB use in AmCreateUser

This commit is contained in:
2025-10-09 14:31:34 -06:00
parent e04c903b11
commit 7cd5071927
2 changed files with 5 additions and 3 deletions
+1 -1
View File
@@ -493,7 +493,7 @@ func AmCreateNewUser(username string, password string, reminder string, dob *tim
_, err2 := amdb.Exec(`INSERT INTO users (username, passhash, verify_email, lockout, email_confnum,
base_lvl, created, lastaccess, passreminder, description, dob) VALUES (?, ?, 0, 0, ?, ?, NOW(), NOW(), ?, '', ?)`,
username, hashPassword(password), util.GenerateRandomConfirmationNumber(), AmDefaultRole("Global.NewUser").Level(),
reminder, *dob)
reminder, dob)
if err2 != nil {
return nil, err2
}