Mercurial > hg > rlgwebd
diff sqlickrypt.c @ 152:bc69717ff386
Increase max username length to 20.
Length is now enforced by sqlickrypt.
author | John "Elwin" Edwards |
---|---|
date | Sun, 30 Mar 2014 20:42:48 -0700 |
parents | f1676e81c80a |
children |
line wrap: on
line diff
--- a/sqlickrypt.c Sun Mar 09 16:15:42 2014 -0700 +++ b/sqlickrypt.c Sun Mar 30 20:42:48 2014 -0700 @@ -118,6 +118,10 @@ sqlite3_stmt *qstmt; char salt[20]; + if (strlen(uname) > 20) { + return 4; + } + opendb(&db, &qstmt, checkquery); /* Check for existing account in the same transaction with creating it. */ status = sqlite3_exec(db, "BEGIN;", NULL, NULL, NULL);