Replies: 2 comments 9 replies
-
If there are errors creating the account, the default create-account view shows them. You can use There isn't a method that returns whether a submitted parameter is not nil or empty. |
Beta Was this translation helpful? Give feedback.
-
UPDATE: I now have a custom I've also got debug statements in a I am expecting for ONE: if I submit a string that parses as a valid email address, TWO: if I submit an invalid email address (I use Perhaps I could say that I should be happy that there IS still some validaton happening... but it would appear that my own validation / |
Beta Was this translation helpful? Give feedback.
Uh oh!
There was an error while loading. Please reload this page.
Uh oh!
There was an error while loading. Please reload this page.
-
as per subject. I am trying to add new fields to the registration form (http://rodauth.jeremyevans.net/rdoc/files/doc/guides/registration_field_rdoc.html); option 1 if it matters (add new fields to the accounts table).
The sample code has this:
I have yet to customize my create-account view yet (maybe this is the issue? but if so it's not clear), and just wanted to test the
before_create_account
hook and the throw. If the standard built-in create-account view does not show any error messages, what must I do to show the error messages? Looking at Rodauth's code, I'm guessing that this has something to do with@field_errors
... but trying to access it from my customer create-account view givesnil
.is there a method to basically only return true if param is not nil and not empty? if there's nothing built-in that's fine, but I'm just wondering. I'm hoping to reject
""
empty values as well. Yes I know I could setrequired='required'
on the input field... but that's a separate discussion.Beta Was this translation helpful? Give feedback.
All reactions