-
Notifications
You must be signed in to change notification settings - Fork 10.6k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Convert Ui-Login Package to Js #6561
Conversation
if (customFields[field]) { | ||
const customField = customFields[field]; | ||
if (customField.required === true && !value) { | ||
return validationObj[field] = t('Field_required'); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
This return should return to function validateCustomFields
|
||
Template.loginServices.events({ | ||
'click .external-login'(e) { | ||
if (this.service && this.service.service == null) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
if (this.service == null || this.service.service == null) {
for (const field in formObj) { | ||
if (formObj.hasOwnProperty(field)) { | ||
const value = formObj[field]; | ||
if (customFields[field]) { |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
I guess you inverted this condition, the correct is if (customFields[field] == null) {
@RocketChat/core