anthony nguyen
Posts: 0
Joined: Sat Jul 19, 2014 12:09 am

Signup services

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?

Erwin Will
Posts: 0
Joined: Sat May 31, 2014 4:50 am

Signup services

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")

anthony nguyen
Posts: 0
Joined: Sat Jul 19, 2014 12:09 am

Signup services

I do have the message function in js

anthony nguyen
Posts: 0
Joined: Sat Jul 19, 2014 12:09 am

Signup services

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.

Erwin Will
Posts: 0
Joined: Sat May 31, 2014 4:50 am

Signup services

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

Erwin Will
Posts: 0
Joined: Sat May 31, 2014 4:50 am

Signup services

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.

Return to “Issues”