Advertisement
Guest User

Untitled

a guest
Sep 17th, 2017
126
0
Never
Not a member of Pastebin yet? Sign Up, it unlocks many cool features!
text 0.39 KB | None | 0 0
  1. class SignInActivity : AppCompatActivity() {
  2. ...
  3. fun authorizeUser(username: String, password: String) {
  4. doAsync {
  5. val authorized = signInBL.checkUserCredentials(
  6. AuthCredentials(username = username, password = password))
  7. activityUiThread {
  8. if (authorized) {
  9. toast("Signed!!!")
  10. } else {
  11. view.showAccessDeniedAlertDialog()
  12. }
  13. }
  14. }
  15. }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement