Advertisement
Guest User

Untitled

a guest
Oct 26th, 2014
156
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.84 KB | None | 0 0
  1. /* send data to Parse.com for verification */
  2. ParseUser.logInInBackground(usernametxt, passwordtxt,
  3. new LogInCallback() {
  4. public void done(ParseUser user, ParseException e) {
  5. if (user != null) {
  6. if(user.emailVerified == true) {
  7. /* if user exists and is authenticated, notify user */
  8. Toast toast = Toast.makeText(getApplicationContext(),
  9. "Successfully Logged In", Toast.LENGTH_SHORT);
  10. toast.setGravity(Gravity.CENTER, 0, 0);
  11. toast.show();
  12.  
  13. finish();
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement