I would like to add special reasons for signup service to fail and register an error. I intend to have the user confirm his/her email prior to successfully creating an account. How can I add this to my signup service?
I would like to add special reasons for signup service to fail and register an error. I intend to have the user confirm his/her email prior to successfully creating an account. How can I add this to my signup service?
you could use javascript with an if statement (not actual code) if emailField1 == emailField2 invoke signup Service else alert("Your email does not match. Please enter matching emails")
I do have the message function in js
I've got that function in js, however, it does not prompt an error to the service and Still allows for the account to be created.
I'm guessing you have signup service invoked on the signup button click. I'm thinking that the signup is going to be invoked no matter. You could checking the similarity while the user is entering data. I'm not sure what this code would look like on appery. But are you sure you need to validate the email
just thought of this you could put the emails in local variables on the service where it is input it into the database you could use the js to check for the emails. If the emails are not the same return null. This will cause the signup service to fail because username cannot be null.