Created
July 15, 2016 09:31
-
-
Save harshadura/684a5187efa5eb0733f2475a055613b4 to your computer and use it in GitHub Desktop.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
@RequestMapping("/authorize") | |
public String authorize(@RequestParam(value="username", defaultValue="username") String username, | |
@RequestParam(value="password", defaultValue="password") String password) { | |
FirebaseHandler firebaseHandler = new FirebaseHandler(mFirebaseDatabaseReference, new FirebaseHandler.FirebaseServiceListener() { | |
@Override | |
public void onSuccessResponseReceived(Object response) { | |
return ; // << error | |
} | |
@Override | |
public void onErrorResponseReceived(Object error) { | |
} | |
}, username, password); | |
firebaseHandler.submitRequest(); | |
return "response"; | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment