Kameron Berget
Posts: 0
Joined: Tue Apr 23, 2013 5:24 pm

User Login and Session Token

Great. So I could use this field as a way to keep my users logged in and validate that they have performed a successful login.

Maryna Brodina
Posts: 0
Joined: Thu Apr 05, 2012 7:27 am

User Login and Session Token

Hello! If you're not going to upload, read/change user's information then you don't need Session Token. but if you still need upload, read/change user's information you can save Session Token in localStorage, also you can save login and password there. If request to DB returns an error on expired Session Token, you can always get it from localStorage using password and login. Clear localStorage variables with login and password on click on logout button.

Kameron Berget
Posts: 0
Joined: Tue Apr 23, 2013 5:24 pm

User Login and Session Token

Ok that sounds like. Plan. However, as a test I created a creat_service on my start screen that was invoked on page load. I then create two actions for the service. On success alert('success'h and on error alert('error'). I then sent a test link to a PC that has no access or login info. I immediately got a success message. How can an anonymous user send a create item request to the database? Am I missing something with security?

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

User Login and Session Token

Hi Kameron,

You don't have to be logged in to database to add value to a collection or to read data from collection. But you'll have to send Session Token for work with users collection.

Blumpkin
Posts: 0
Joined: Fri Jan 17, 2014 3:35 pm

User Login and Session Token

Appery fucking sucks Big Wads, like seriously go back to fucking russia, you dumb monkey hoarding, soviet, nazis.

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

User Login and Session Token

Hi,
I followed this procedure to implement user registration in my app:

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

the problem is that if the user types incorrect "user" or "password", and retypes with the correct ones, nothing happens (no navigation to the other screen), also when user types correct user name & password, and the on the othe page click logout, and navigates to the login page, and try to enter again, nothing happens.

I mean, if user logs in, and then logs out, and try to login again, nothing happens the second time (the spinner shows but no navigation to second page)

No error in console.

Any suggestion?

Regards

Alex GG
Posts: 0
Joined: Thu Nov 14, 2013 11:11 pm

User Login and Session Token

update: I set "use fullscreen refresh" after logout to navigate to login page, and now seems to work fine. Thanks

Alejandro Fernández-Montes
Posts: 0
Joined: Sat May 09, 2015 8:52 am

User Login and Session Token

I followed the tutorial of login with user registration (skipped user registration because i don't need it)

https://devcenter.appery.io/tutorials...

and I have two main issues:
1) When a user login can see the data created by other user until new data is created (seems to be on cache or sth like that)

2) When a user login, the list of items doesn't appear until I don't push the new item button. Tried to force the refresh of the list by adding a service invoke on the event page load, but doesn't seem to work fine.

I think the solution to one should solve the other.

Thanks in advance.

Alena Prykhodko
Posts: 0
Joined: Tue Apr 09, 2013 7:36 am

User Login and Session Token

Hello Alejandro,

Please check step 5 https://devcenter.appery.io/tutorials...

[quote:]5. After that, open Change default ACL tab. A new window opens where you have to choose "@Creator" as a Username click "Add user" and "Save and Close" buttons.[/quote]

Return to “Issues”