Advertisement
Not a member of Pastebin yet?
Sign Up,
it unlocks many cool features!
- class SignInActivity : AppCompatActivity() {
- ...
- fun authorizeUser(username: String, password: String) {
- doAsync {
- val authorized = signInBL.checkUserCredentials(
- AuthCredentials(username = username, password = password))
- activityUiThread {
- if (authorized) {
- toast("Signed!!!")
- } else {
- view.showAccessDeniedAlertDialog()
- }
- }
- }
- }
Advertisement
Add Comment
Please, Sign In to add comment
Advertisement