Page 1 of 1

Is it possible to restrict users from logging in if they are signed up?

Posted: Wed Oct 22, 2014 9:32 pm
by Mike6979865

I have a mobile app and an interface app. How do I restrict users from even logging into the interface app. I'm using acl, so even if they login into the interface app, they can't see the records. However, is it possible to restrict logging in into the interface app to certain users only? It looks like everyone that signed up from the mobile app is able to login. But ofcourse they can't see any records.

Regards,


Is it possible to restrict users from logging in if they are signed up?

Posted: Thu Oct 23, 2014 3:47 am
by Yurii Orishchuk

Hi Mike,

You can simply detect if currently it's web or phonegap app and then make logic you need(for example navigate to other page or disable login functionality).

See details about if conditions: http://stackoverflow.com/questions/80...

Regards.


Is it possible to restrict users from logging in if they are signed up?

Posted: Thu Oct 23, 2014 3:14 pm
by Mike6979865

Thank you for information. Is it possible to give a certain user access to certain pages of the app?


Is it possible to restrict users from logging in if they are signed up?

Posted: Thu Oct 23, 2014 11:27 pm
by Yurii Orishchuk

Hi Mike,

There is not buildin features for page ACL in Appery.io now.

The only way - to implement it yourself.

For example you can add to "Users" collection "pagesAcl" field with "object" type.

And store there something like: {avaliablePages: ["login", "product", "settings"], rejectedPages: ["admin"]}

Then you can receive this field on user login and make access page logic.

Regards.


Is it possible to restrict users from logging in if they are signed up?

Posted: Tue Oct 13, 2015 11:37 pm
by Matthew G. Monteleone

Can you elaborate on the "Then you can receive this field on user login and make access page logic."

Do you have an examle of how to make page access logic?

For example, the most simple one, no accesstoken, then no access to any page other than login?


Is it possible to restrict users from logging in if they are signed up?

Posted: Wed Oct 21, 2015 8:33 pm
by Serhii Kulibaba

Hello Matthew,

We have no such example. You can check it by tourself. Server doesn't return any data without sessionToken