I have requirement for email confirmation on signup, where confirmation link will be sent to admin’s email instead of sign up user.
Once admin confirm’s email (same way like currently user click the link to confirm it) , another email should send to user to notify that admin confirm/approved for new user
Flow:
1.New sign-up => 2.admin will receive email to approve => 3.Admin click’s link from email to approve => 3. Send new user email to notify confirmation => 4. User can login to system
how can i archive this with backendless? Is there any config to add Admin-email for confirmation instead of user?
Create an API service that has a method that will activate the user and send him a message about successful registration. (If admin needs some UI page, customer can create it in builder).
Issue:
When New signup request get sent from frontend, new user is getting created in users table.
but not getting email and /register api also return 400 error code (error message : User objectId must be non empty string)
@mark-piller Can we use email template to instead of ‘send email api’ ?
As i have to send confirmation link to admin on new user registration/signup.
Once Admin click that link users status get change to ‘enable’ and user will get email that admin approved/confirmed entry.
Place a link to this method in the afterRegister event handler in the block with the text of the email to be sent to the administrator. Use objectId instead of smart text {userId}
When the user registers, the admin will receive an email with a link to activate the user
I recommend for your method “activateUser” (as in my screenshot above) which will activate the user for return to insert the link to the page you want. This way, once the admin clicks the link and confirms the user, they will be redirected to the page you specified in the method.
May i know where can i found confirmation page link created by backendless UI-builder?
I tried to return link for testing but it’s just get displayed on email verification link click. Its should redirect like backendless default confirmation flow.
find the page you want in the UI Builder and select it (if you want the default confirmation page, it’s allocated under the system container), then click on the Open Published App icon in the top-rigth corner (see the red arrow pointing this). The page will be opened in the new browser tab, there you can copy the URL of the page and use it in your email.
on new user sign up admin will receive email to verify user.
so created an API service that has a method that will activate the user and send him a message about successful registration or verification by admin.
Every thing is working fine. But when admin clicks confirmation link from email, it open new tab with blank page, instead of this i have to show/redirect to backendless system confirmation-page (it’s in ui builder).
To achive this i have returned confirmation-page url from api-service (can find screenshot in last reply).