android - emailVerification = false in parse -


hi trying use parse api's database project requires user accounts parse provides. while reading tutorial on how set user accounts @ https://parse.com/docs/android_guide#users stated:

"enabling email verification in application's settings allows application reserve part of experience users confirmed email addresses. email verification adds emailverified key parseuser object. when parseuser's email set or modified, emailverified set false. parse emails user link set emailverified true."

how add emailverification key = true whenever user tries register:

parseuser user = new parseuser(); user.setusername(username); user.setpassword(password); user.setemail(email);  user.signupinbackground(new signupcallback() {     public void done(parseexception e) {         if (e == null) {             // sign succeeded go multiplayer screen             // store username of current player             currentuser = username;             final string title = "account created successfully!";             final string message = "please verify email before playing";             buildalertdialog(title, message, true);         } else {             // sign didnt succed. //todo: figure out how deal error             final string title = "error account creation failed";             final string message = "account not created";             buildalertdialog(title, message, false);         }     } }); 

go parse.com dashboard, go settings, email settings , switch on verify user emails.

enter image description here

no code required.


Comments

Popular posts from this blog

c# - DetailsView in ASP.Net - How to add another column on the side/add a control in each row? -

javascript - firefox memory leak -

Trying to import CSV file to a SQL Server database using asp.net and c# - can't find what I'm missing -