Closed tobernguyen closed 6 years ago
@tobernguyen I think you can define a custom validator: See how to define and use a custom validator by doc: http://apidocs.strongloop.com/loopback-datasource-juggler/#validatable
@tobernguyen Does the above solution fix your problem? I am glad to discuss here if you need any help.
@jannyHou but the custom validor will be called automatically or it's needed include a hook 'before save' to validate?
This issue has been automatically marked as stale because it has not had recent activity. It will be closed if no further activity occurs. Thank you for your contributions.
This issue has been closed due to continued inactivity. Thank you for your understanding. If you believe this to be in error, please contact one of the code owners, listed in the CODEOWNERS
file at the top-level of this repository.
When implement login with Google for my application, I have a need to only accept email from domain "abc.xyz". But I couldn't find any way to customize as my need.
Is there any way to achieve that? If not, I would happy to make a pull request.