Commit Graph

354 Commits

Author SHA1 Message Date
Michael Snoyman
3c65d49376
Hackage wants newer cabal-version 2020-11-06 09:07:06 +02:00
charukiewicz
c5e76faf4d adjusted indentation of if/then/else to be more compact 2020-03-21 12:49:18 -05:00
charukiewicz
61f1e5eeae added sendForgotPasswordEmail to YesodAuthEmail typeclass and incorporated into defaultRegisterHelper 2020-03-21 02:15:27 -05:00
charukiewicz
f80ec711ff updated AuthMessage to accommodate user registration flow with password: added EmailVerified and EmailVerifiedChangePass, deprecated AddressVerified 2020-03-20 22:22:13 -05:00
charukiewicz
c35c2fddc2 added passwordResetHelper method, exposed defaultRegisterHelper 2020-02-05 23:45:02 -06:00
charukiewicz
abdd844279 added registerHandler method to YesodAuthEmail class to enable override 2020-02-05 01:21:56 -06:00
Juan Paucar
c279547962 Remove unnecesary Typeable deriving 2020-01-17 11:48:58 -05:00
Виталий Котляров
ddc71e665b Translated message "CurrentPassword" for russian language. 2019-10-26 23:08:38 +03:00
3v0k4
baa6bfb3a8 Dummy: Check for JSON first 2019-08-23 00:48:17 +02:00
3v0k4
657b790a3d Dummy: Add support for JSON submissions 2019-08-19 19:25:37 +02:00
Martin Milata
b4d3e01afb Remove comma from <form> tag 2019-06-18 01:56:32 +02:00
Steven Leiva
ceeeb16ae0 clearCreds redirect behavior depends on request type. 2019-05-14 13:20:34 +00:00
Michael Snoyman
b1e718397b
Deprecate GoogleEmail2 (fixes #1579) 2019-02-12 18:52:47 +02:00
oddvars
41101b20dd
minor typos
fixed typo and escaped backslash for haddock
2018-09-13 16:42:52 +02:00
Michael Snoyman
b7a3385a89
Merge pull request #1537 from kikaiteam/fix_forgot_pass_endpoint
AuthEmail: Fix forgot-password endpoint
2018-07-10 11:56:28 +03:00
hainq
72ad3082ce AuthEmail: no-op, improve doc format 2018-07-09 18:24:11 +07:00
hainq
0c136f14eb AuthEmail: Fix forgot-password endpoint
This is a quick fix for PR#1524.
Currently, defining `emailPreviouslyRegisteredResponse` will prevent
`sendConfirmationEmail` from happening, even when `registerHelper` is
called from `postForgotPasswordR`.
2018-07-09 17:34:15 +07:00
Michael Snoyman
71d951c09b
Correct the version bump (previous unreleased changes) 2018-07-09 13:10:55 +03:00
hainq
6a64debfa0 Redirect to afterVerificationWithPass when account was registered with a password 2018-07-09 14:02:10 +07:00
hainq
54b1d3d3ff AuthEmail: Immediately register with a password
Register endpoint: Support an optional "password" param that can be used
to set new accounts' password immediately.
2018-07-09 14:02:10 +07:00
Steven Leiva
8d58a56577 Make behavior of registerHelper configurable.
The behavior of `registerHelper` when an email that is already-verified
tries to register is now configurable via the
`emailPreviouslyRegisteredResponse` method of the `YesodAuthEmail`
typeclass.
2018-06-23 09:56:20 -05:00
Ping Chen
468fba2226 generalize type signature of GoogleEmail2.getPerson 2018-04-09 14:21:48 +09:00
Sibi Prabakaran
c04d6f9ac7
Remove MINIMAL pragma for authHttpManager
We now have a default implementation for it. See this for more
information:
https://github.com/yesodweb/yesod/issues/1489#issuecomment-370200663

Helps in preventing warnings like this:

```
serverside.hs:40:10: warning: [-Wmissing-methods]
    • No explicit implementation for
        ‘authHttpManager’
    • In the instance declaration for ‘YesodAuth App’
   |
40 | instance YesodAuth App where
   |          ^^^^^^^^^^^^^
```
2018-03-04 13:20:21 +05:30
Michael Snoyman
a3f130233b
Relax a number of type signatures #1488 2018-02-20 13:51:36 +02:00
Michael Snoyman
fa8e1ac00f
Switch to SubHandlerFor
This is much more consistent than suddenly using a ReaderT for subsites.
Thanks to @jprider63 for the inspiration for this, I think it cleans
things up a lot!
2018-01-24 13:01:26 +02:00
Michael Snoyman
6830a9840c
Merge branch 'better-monads' into no-transformers 2018-01-17 06:43:52 +02:00
Michael Snoyman
60f65ed267
Cleanup warnings 2018-01-15 15:09:07 +02:00
Michael Snoyman
3bb654857c
Ditch ResumableSource 2018-01-12 00:09:54 +02:00
Michael Snoyman
3e06942449
Simplify YesodSubDispatch 2018-01-11 23:13:32 +02:00
Michael Snoyman
fbccfe2306
Merge branch 'better-monads' into no-transformers 2018-01-11 22:49:02 +02:00
Michael Snoyman
a16e75249a
More moving over to unliftio 2017-12-31 09:20:02 +02:00
Michael Snoyman
1b22e6a908
Further transformer cleanup 2017-12-18 17:06:46 +02:00
Michael Snoyman
8e265f6ebc
It all compiles 2017-12-18 15:04:45 +02:00
Michael Snoyman
aed10fc84a
WIP 2017-12-13 14:39:59 +02:00
Michael Snoyman
61c887f501
Start converting yesod-auth over 2017-12-13 13:44:59 +02:00
Sibi Prabakaran
aff72a7365
Fix since markup 2017-12-08 15:33:15 +05:30
Sibi Prabakaran
663220f334
Fix exposed version number and also haddock syntax 2017-12-08 15:30:32 +05:30
Casey Allred
108c0c3984 merged master 2017-12-07 14:22:28 -07:00
Casey Allred
30ccfc8089 didn't mean to change this signature 2017-12-07 14:01:36 -07:00
Casey Allred
f82d08b32a add a way to control redirection to current location when redirectLogin is called 2017-12-07 13:56:53 -07:00
Alex Greif
2c59cb7dcd extend docs of defaultMaybeAuthId (#1453)
* extend docs of defaultMaybeAuthId

make more explicite that on each call a database access is done. This can be of relevance and sometimes redundant with other Handler functionality

* Update Auth.hs
2017-11-08 12:36:39 +00:00
Cole Brown
600d307310 Extend YesodAuthEmail to support extensible password hashing.
This change introduces `hashAndSaltPassword` and `verifyPassword` to the
`YesodAuthEmail` type class, allowing users to implement their own hashing
schemes (i.e. to provide compatibility with an existing database). It also
updates the default handlers to use these new functions when appropriate. The
functions have default implementation such that behavior for legacy applications
should not change.
2017-09-28 14:37:21 -04:00
Jesse Kempf
9edca8e3b5 Correct Yesod-Auth's usage of "log in" vs "login" in English.
"Log in" (two words) is a verb, indicating the action of, well, logging
in. "Login" (one word) is a noun, indicating the credentials used to log
in.
2017-08-30 20:40:29 -07:00
Paul Rouse
3c53acdad8 Add "@since" comments for newly exposed Yesod.Auth.Util.PasswordStore 2017-08-29 18:49:21 +01:00
Paul Rouse
464b055568 Expose Yesod.Auth.Util.PasswordStore 2017-08-29 13:40:32 +01:00
Paul Rouse
59f073a41f Pure move of Yesod.PasswordStore to Yesod.Auth.Util.PasswordStore 2017-08-29 13:34:20 +01:00
GyuYong Jung
1569af55c7 Add Korean translation 2017-08-26 05:27:53 +09:00
Daniel Campoverde
e3041aa17b Fix auth messages Spanish translation 2017-08-08 11:03:09 -05:00
Michael Snoyman
4b34fe9c72
Fix deprecation warning for LTS 8 2017-07-23 12:25:29 +03:00
Sibi Prabakaran
92849d863c
Port to cryptonite 2017-05-18 08:18:39 +05:30