Skip to content
Open
Show file tree
Hide file tree
Changes from 1 commit
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 1 addition & 0 deletions app/errors/intl.js
Original file line number Diff line number Diff line change
Expand Up @@ -92,4 +92,5 @@ export default {
MAIL_SEND: 'Ошибка отправки письма',
MAIL_WRONG: 'Неверный формат email, проверьте еще раз',
MAIL_IN_USE: 'Этот email уже используется другим пользователем',
'EValidation.RealNameTooLong': 'Реальное имя слишком длинное (максимум 50 символов)',
};
5 changes: 4 additions & 1 deletion models/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -65,7 +65,10 @@ registerModel(db => {
firstName: { type: String },
lastName: { type: String },
disp: { type: String }, // Display name

realName: {
Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Why do we need a new field?

type: String,
maxlength: [50, 'EValidation.RealNameTooLong'],
},
birthdate: { type: String },
sex: { type: String },
country: { type: String },
Expand Down