This question is locked. New answers and comments are not allowed.
i am trying to send a password reset to a user but when i do
EVUser
.fetchUserWithEmail
(userEmail
.text
,
block
: { (user:EVUser!,
error
:
NSError
!) -> Void in
if
(error ==
nil
) {
self
.errorLabel
.hidden
=
false
//print("The user " + user.username + " is logged in with valid access token.")
self
.errorLabel
.textColor
=
UIColor
.whiteColor
()
self
.errorLabel
.text
=
"please Check your email account for a reset Link"
print
(
"please Check your email account for a reset Link"
)
//self.navigationController?.popToRootViewControllerAnimated(true)
}
else
{
// fail
print
(
"Fail"
)
self
.errorLabel
.hidden
=
false
self
.errorLabel
.textColor
=
UIColor
.redColor
()
self
.errorLabel
.text
= error
.domain
}
})
the error is always nil even if no email address is provided
also how do i trigger the reset email to be sent to the user