Synchronet now requires the libarchive development package (e.g. libarchive-dev on Debian-based Linux distros, libarchive.org for more info) to build successfully.

Commit 8d6c6f03 authored by Rob Swindell's avatar Rob Swindell 💬

A couple of new user gender related fixes

- Default gender of ' ' (instead of '')
- Don't write the gender to the user's birthdate
parent d24db77c
......@@ -29,7 +29,7 @@ var prepUser = {
location : '',
phone : '',
birthdate : '',
gender : '',
gender : ' ',
password : ''
};
......@@ -141,7 +141,7 @@ if (valid_param('phone', MIN_PHONE, LEN_PHONE)) {
}
if (valid_param('gender', 1, 1) && ['X', 'M', 'F', 'O'].indexOf(request.get_param('gender')) > -1) {
prepUser.birthdate = clean_param('gender');
prepUser.gender = clean_param('gender');
} else if (required(UQ_SEX)) {
reply.errors.push(locale.strings.api_register.error_invalid_gender);
}
......@@ -161,4 +161,4 @@ http_reply.header['Content-Length'] = reply.length;
write(reply);
prepUser = undefined;
reply = undefined;
\ No newline at end of file
reply = undefined;
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment