registration: small fix
This commit is contained in:
+1
-1
@@ -117,7 +117,7 @@ int directory_exists(const char *path) {
|
||||
// stat() failed, probably doesn't exist
|
||||
return 0;
|
||||
}
|
||||
return S_ISDIR(info.st_mode); // true if it's a directory
|
||||
return S_ISDIR(info.st_mode); // true if it is a directory
|
||||
}
|
||||
|
||||
void extract_names_from_hash(uint32_t file_hash, char *dirname, char *fname) {
|
||||
|
||||
+1
-1
@@ -10,7 +10,7 @@ int32_t create_user(session *sess, char *line) {
|
||||
i_db_user_create p;
|
||||
uint32_t privileges;
|
||||
uint32_t res;
|
||||
if (sscanf(line, "register %s %s %s", p.uname, p.pass, p.email) == 3) {
|
||||
if (sscanf(line, "register %s %s", p.uname, p.pass) == 2) {
|
||||
res = db_user_create(&p);
|
||||
if (res) {
|
||||
sess->state = OP_WAIT;
|
||||
|
||||
Reference in New Issue
Block a user