Hi I am a newbee here.
The questions is that there are many apps having a function as a verification process by sending some codes to your registered email before accessing the database. Does appery have some function or other substitution ?
Hi I am a newbee here.
The questions is that there are many apps having a function as a verification process by sending some codes to your registered email before accessing the database. Does appery have some function or other substitution ?
Hello AC,
We are sorry for delay, we are working on it and will get back t you with the update.
AC,
We contacted our development team and unfortunately there isn't such built function as well as a ready solution. You may search for it online, perhaps someone had faced the same problem and shared its solution.
In the service where you add the user record, add a column for secret code.
In the mapping event prior to add, for that column, add this code:
return fcreatcode()
function fcreatecode() {
return Math.floor((Math.random() * 1000000) + 1).toString().trim();
}
In the success event for the user registration or add service, call the service to email the secret code to the user ... Based on the value in the column.... Which perhaps you saved to local storage in the function call above??
If you're interested in an entire login mechanism with registration code verification, Facebook login, etc .... I hage that available on my website for my consulting clients.
Send me an email if youd like to know more.
Best,
Bruce
Hi Bruce
Once you send the secret code via email... Which are the next steps? Does the user need to login entering both password and secret code? Or the secret code is part of an activation link? I must confess i did not find the way to handle activation links in appery webapp, so i guess your approach is the first one...
Best,
Claudia
The approach is the first one.. When user logs back in ....read the user table and see if there is a secret code ... If so direct user to an authentication page where they enter the secret code and you test for a match.
You'll need a service to read the user table ... As the built in services from apppery don't include one.
If any of that doesn't make sense ... I can post here an example.
Best
Bruce
Hi Bruce,
I'm really interested on how this works, is the verification code just for registration process or for everytime the user logs in? I saw your email from another thread and will send you an email so I can request for a sample. Thanks.