Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

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

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,

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

Mike6979865
Posts: 0
Joined: Fri Jul 11, 2014 3:53 pm

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

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

Yurii Orishchuk
Posts: 0
Joined: Fri Feb 14, 2014 8:20 am

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

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.

Matthew G. Monteleone
Posts: 0
Joined: Tue Oct 13, 2015 11:37 pm

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

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?

Serhii Kulibaba
Posts: 150
Joined: Tue Aug 27, 2013 1:47 pm

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

Hello Matthew,

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

Return to “Issues”