Page 1 of 1

How to edit user collection username or password

Posted: Tue Jun 24, 2014 5:23 am
by Kurt6863778

hey how can i allow a user to change their username and password from within the app and reflect these changes when they log out and log back in?


How to edit user collection username or password

Posted: Tue Jun 24, 2014 5:45 am
by Alena Prykhodko

Hello,

You can do it as follows : http://devcenter.appery.io/documentat...


How to edit user collection username or password

Posted: Tue Jun 24, 2014 5:59 am
by Kateryna Grynko

Hi Kurt,

You can do it this way:
http://devcenter.appery.io/documentat...


How to edit user collection username or password

Posted: Tue Jun 24, 2014 6:34 am
by Kurt6863778

yeah i have looked at that and it still doesnt make sense to me and i am not sure what the session token thing is and where i would get it and how to use it either.

i also dont know what goes into the URL field and where i would get that information from.


How to edit user collection username or password

Posted: Tue Jun 24, 2014 2:44 pm
by Alena Prykhodko

Kurt,

Session token is needed to identify the user and, if it's necessary, to display the unique data for him. Please read for more here: http://devcenter.appery.io/documentat...

To get URL use curl command, it's from the link posted above http://devcenter.appery.io/documentat...

precurl -X PUT
-H "X-Appery-Database-Id: 526fdbd8e4b07c3286b537f1"
-H "X-Appery-Session-Token: dc99a77b-ad80-4055-b986-6157b192aa69"
-d "{"email":"ann@somemail.com"}"
https://api.appery.io/rest/1/db/users/527a2961e4b017bd81a8df8a
/pre

prehttps://api.appery.io/rest/1/db/users/527a2961e4b017bd81a8df8a/pre
You will need to specify your database ID and so on.


How to edit user collection username or password

Posted: Wed Jun 25, 2014 4:09 pm
by Kurt6863778

hey thanks for reply , but i got it work after a few attempts and adjustments but waht i got done i think is what you suggested above but how i am trying to access it is by ...

for example :

there is a section when opened it loads a screen that displays the user's individual information in labels
i.e

Username : username_db_infoLabel (Edit button)
Password : password_db_infoLabel (Edit button)

and when the edit button is clicked the labels are hidden and the input boxes are displayed for the user to edit/change the individual information and save .

so what i am tring to achieve is :

1- to display their information from within the app when they open that page
2 - the user can update their information themselves from within the app

thanks


How to edit user collection username or password

Posted: Wed Jun 25, 2014 8:15 pm
by Evgene Karachevtsev

Hello Kurt,

Please take a look at this tutorial:
http://devcenter.appery.io/tutorials/...
Here you will learn how to handle the session token and id which are returned in the response of login_service. With this parameter you can get the details of a specific user:
http://devcenter.appery.io/documentat... and display the desired settings (username etc) in the input component
After editing these fields you need to call update_service and use their values for the request parameters: http://devcenter.appery.io/documentat...


How to edit user collection username or password

Posted: Sat Jun 28, 2014 12:32 am
by Kurt6863778

Hey

im trying and doing all of that stuff listed in the tutorials and it is still not working and i dont know what else to do and i cant seem to figure out what else to do.

well... to be honest the things in the tutorials are working but that is if i do them through the (back end setting up) if i can call it that but i want the individual user to be able to change their password and user name from within the app themselves ..

is there like a video or can someone else there please make a video step by step illustrating the steps to correctly achieve this .

(sorry i dont learn by reading , i learn by viewing / demonstration) or is there another secure way i can receive assistance from you all? thanks in advance


How to edit user collection username or password

Posted: Sun Jun 29, 2014 8:11 am
by Alena Prykhodko

Hi Kurt,

As it's up to your app logic, hard to say what you should do, those tutorials in the reply above show how to implement your ideas.
Here is Building a mobile app with user registration tutorial video https://www.youtube.com/watch?v=ikf0-...

You can find more videos on Appery.io channel on Youtube https://www.youtube.com/user/apperyio

Just to add, if you are curious to find out more beneficial possibilities for you app and make things more clear please go through some simple tutorials http://devcenter.appery.io/tutorials/


How to edit user collection username or password

Posted: Sun Jun 29, 2014 5:48 pm
by Kurt6863778

ok thanks i'l check it out