Discussion:
happstack-authenticate 2 account creation
Corentin Dupont
2015-08-03 14:47:09 UTC
Permalink
another question: how to parameter the account creation?
For example now it accepts a name with only a space and no emails. How can
I change that?
Thanks,
C
Hello,
I'm a bit confused about the routeAuthenticate and authenticateState bits
in the new happstack-authenticate.
(_, routeAuthenticate, authenticateState) <-
liftIO $ initAuthentication Nothing (const $ return True)
[ initPassword "http://localhost:8000/#resetPassword" "example.org
"
, initOpenId]
Where this should be done? In the main? If possible I'd prefer to delay it
because my main is web-agnotic.
Where should I store those two values? Should I put them in my monad stack
(I have a StateT)?
Is the routeAuthenticate really necessary? It looks a bit cumbersome to
carry it around everywhere in the states.
Thanks,
Corentin
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.
Jeremy Shaw
2015-08-04 04:09:09 UTC
Permalink
Hello,

The current code does not enforce any sort of sensible restrictions on
username/password/email, etc, no does it provide hooks to allow you to. But
it would be swell if it did!

That information would be passed in via the initPassword function:

https://github.com/Happstack/happstack-authenticate/blob/master/Happstack/Authenticate/Password/Route.hs#L51

Right now there is a paramater, isAuthAdmin. I am thinking that would be
replace with a record that includes isAuthAdmin, plus some functions that
can place restrictions on the username and password?

- jeremy
Post by Corentin Dupont
another question: how to parameter the account creation?
For example now it accepts a name with only a space and no emails. How
can I change that?
Post by Corentin Dupont
Thanks,
C
Hello,
I'm a bit confused about the routeAuthenticate and authenticateState
bits in the new happstack-authenticate.
Post by Corentin Dupont
(_, routeAuthenticate, authenticateState) <-
liftIO $ initAuthentication Nothing (const $ return True)
[ initPassword "http://localhost:8000/#resetPassword" "
example.org"
Post by Corentin Dupont
, initOpenId]
Where this should be done? In the main? If possible I'd prefer to delay
it because my main is web-agnotic.
Post by Corentin Dupont
Where should I store those two values? Should I put them in my monad
stack (I have a StateT)?
Post by Corentin Dupont
Is the routeAuthenticate really necessary? It looks a bit cumbersome to
carry it around everywhere in the states.
Post by Corentin Dupont
Thanks,
Corentin
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.
--
You received this message because you are subscribed to the Google Groups "HAppS" group.
To unsubscribe from this group and stop receiving emails from it, send an email to happs+***@googlegroups.com.
To post to this group, send email to ***@googlegroups.com.
Visit this group at http://groups.google.com/group/happs.
For more options, visit https://groups.google.com/d/optout.
Loading...