Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- /* send data to Parse.com for verification */
- ParseUser.logInInBackground(usernametxt, passwordtxt,
- new LogInCallback() {
- public void done(ParseUser user, ParseException e) {
- if (user != null) {
- if(user.emailVerified == true) {
- /* if user exists and is authenticated, notify user */
- Toast toast = Toast.makeText(getApplicationContext(),
- "Successfully Logged In", Toast.LENGTH_SHORT);
- toast.setGravity(Gravity.CENTER, 0, 0);
- toast.show();
- finish();
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement