meteor-accounts-ui-bootstrap-3 icon indicating copy to clipboard operation
meteor-accounts-ui-bootstrap-3 copied to clipboard

errorMessage() for extraSignupFields validation

Open reneverschoor opened this issue 10 years ago • 2 comments

I've added a few extra fields using extraSignupFields. In Accounts.validateNewUser() I do some validation on these extra fields. If a field is invalid, I return false from validateNewUser(). This works, but what I would like to do is to show a message in the signup dialog, explaining what's wrong. How can my app use the equivalent of Accounts.loginButtonsSession.errorMessage('Thou shall enter a value') ?

reneverschoor avatar Mar 21 '15 18:03 reneverschoor

I properly documented how to do this on the README, but I'm having difficulties getting the actual values written to the user documents. For some reason it just doesn't write them. Does this work for you?

ianmartorell avatar Apr 11 '15 16:04 ianmartorell

As far as I can tell (not all that far) the extra-fields key has been removed? As of jul 14, 2016 only the following keys exist.

"Accounts.ui.config = function(options) { // validate options keys var VALID_KEYS = ['passwordSignupFields', 'requestPermissions', 'requestOfflineToken', 'forceApprovalPrompt'];

switheyw avatar Jul 14 '16 21:07 switheyw