Fix success reset password message.
This commit is contained in:
parent
1390d2a22a
commit
5fc78ff831
1 changed files with 2 additions and 0 deletions
|
|
@ -372,6 +372,8 @@ proc resetPassword(c: var TForumData, nick, antibot: string): bool =
|
||||||
echo("[WARNING] Couldn't send activation email: ", emailSentFut.error.msg)
|
echo("[WARNING] Couldn't send activation email: ", emailSentFut.error.msg)
|
||||||
return setError(c, "email", "Couldn't send activation email")
|
return setError(c, "email", "Couldn't send activation email")
|
||||||
|
|
||||||
|
return true
|
||||||
|
|
||||||
proc checkLoggedIn(c: var TForumData) =
|
proc checkLoggedIn(c: var TForumData) =
|
||||||
let pass = c.req.cookies["sid"]
|
let pass = c.req.cookies["sid"]
|
||||||
if pass.len == 0: return
|
if pass.len == 0: return
|
||||||
|
|
|
||||||
Loading…
Add table
Add a link
Reference in a new issue