Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

App registration with password recovery- will this allow users to log in with their email?

Hi,

The tutorial here:

http://devcenter.appery.io/tutorials/...

This asks you to create a Users collection with a username, email, and password. When a user logs into the app, they enter their username (or 'login'). I want the user to be able to enter their email address as their username. Will this validate on username OR login, or does it have to be username

Thanks!

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App registration with password recovery- will this allow users to log in with their email?

Hi Peter,

You can use email as username here, make sure that you're using "Users data" collection for this needs.

Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

App registration with password recovery- will this allow users to log in with their email?

Hi Illya, thanks for the response! Do you mean that I can use email instead of username when I build the app, or the user can put their email address in the login field?

Illya Stepanov
Posts: 0
Joined: Mon Mar 18, 2013 8:48 am

App registration with password recovery- will this allow users to log in with their email?

Basically here is the data source from users collection:
Image

  • as 'username' here is a string, you can use anything, just make an appropriate placeholder in the input component UI.
Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

App registration with password recovery- will this allow users to log in with their email?

Ok.. if I just have the user enter an email, can I map that input component it to both the Username and Email columns in the Create User service.. if I do this will all the alerts for incorrect login/password/email still work in the register and recovery screens?

Peter Viglietta
Posts: 0
Joined: Sat Jul 05, 2014 6:22 pm

App registration with password recovery- will this allow users to log in with their email?

I tried doing this, I have and when I got to the part in this tutorial, Under the section: Creating REST services to invoke server code scripts

http://devcenter.appery.io/tutorials/...

...where it tells you to do this in order to create the response parameter (the message that confirms that an email has been sent for password recovery) on the REST service that invokes the server code script :

  1. There’s only one response parameter: message. The service response can be automatically created from the Test tab (here's the screenshot):
    http://devcenter.appery.io/wp-content...

    .. i created a user in my database called user, and hit test, but it gives me this message instead:

    Image

    remember, I have the email input mapped to both the username and the email, like this. Would that affect anything?

    Image

    Or is the problem that my Send grid account isn't activated yet, or I have to set something up in SendGrid for it to send the email properly?

    Any help would be much appreciated, thanks

Kateryna Grynko
Posts: 0
Joined: Thu Nov 15, 2012 9:13 am

App registration with password recovery- will this allow users to log in with their email?

Hi Peter,

Please output a value of a variable XHRResponse in servercode console. It seems there is an error when sending request.

Return to “Issues”