mirror of
https://git.joinsharkey.org/Sharkey/Sharkey.git
synced 2024-11-23 16:33:09 +02:00
parent
a28d341ed9
commit
4f9493265a
1 changed files with 8 additions and 4 deletions
|
@ -55,11 +55,15 @@ module.exports = async (params, user, _, isSecure) =>
|
|||
// Get 'birthday' parameter
|
||||
const birthday = params.birthday;
|
||||
if (birthday != null) {
|
||||
if (!isValidBirthday(birthday)) {
|
||||
return rej('invalid birthday');
|
||||
}
|
||||
if (birthday != '') {
|
||||
if (!isValidBirthday(birthday)) {
|
||||
return rej('invalid birthday');
|
||||
}
|
||||
|
||||
user.birthday = birthday;
|
||||
user.birthday = birthday;
|
||||
} else {
|
||||
user.birthday = null;
|
||||
}
|
||||
}
|
||||
|
||||
// Get 'avatar_id' parameter
|
||||
|
|
Loading…
Reference in a new issue