0
Hi, I am trying to create an app from the SMA application I purchased with Tecdiary. I am doing this with TwinR, builder, however, TwinR asks me for the following information so that SMA users can log into the app once they download it.
Login status check script
This is the most important part of the login process. Here, you need to add JavaScript which will help Twinr Framework identify login status of the user. Your script must return following four statuses.
loggedIn: This status means user is currently logged in and we allow them see post login screens.
notLoggedIn: This status means user is currently not logged in.
authError: This means user has entered wrong username and password.
unknown: This means auth status is currently unknown. This should be default status as well.
Status names must match exactly as mentioned above.
I have no javascript knowledge and I would like to know if you could develop this code and how much it would cost. Thanks.
The link for more details: https://help.twinr.dev/app-editor/screens/login/general
Thank you.
0
Hello,
I am sorry as I never used that framework and can't help much. You can check the login
method of auth model app/models/admin/Auth_model.php
It sets the session, errors, and message. If you need to check login with (bool) $this->session->userdata('identity')
All session and others data is not handdled with JS but PHP.
Thank you
We use Cookies
We use cookies to ensure that we give you the best experience on our website. By continuing to browse the site you are agreeing to our use of cookies.
Please visit https://tecdiary.com for purchase, support and all other tasks. If you find any bug/error there, please do inform us. Thank you