Skip to content
This repository was archived by the owner on Dec 9, 2018. It is now read-only.

Feature/email authorization #2

Open
wants to merge 16 commits into
base: master
Choose a base branch
from
Open

Conversation

Jassob
Copy link

@Jassob Jassob commented Sep 21, 2016

I think this is good enough now.
However I would like to implement this as some kind of plugin or opt-in thingie.

Input on how to refactor it into a module is appreciated!

Jassob added 16 commits July 8, 2016 18:00
We need to store the verification code we send to users when they try to
register so we can verify the codes.
Added option in default.conf for email requests.
Added hashmap of email requests to gitit state and functions that modify
that part of the state.
Gitit now sends verification messages to the supplied email address.
No handler for validating the links exists yet.
Added function for retrieving request code from HTTP paramters.
Added function for retrieving email verification requests from the
request file.
Added some comments to my functions in Authentication.hs
When an account is requested a message is sent to the email of the user
requesting the account. This message contains a link with a verification
code that is needed to create the account.
When that link is visited the newly created handlers compare the code
with the one stored on the server and the user is free to create an
account if they match.
Also added so email addresses must be either *@student.chalmers.se or *@dtek.se.
@Jassob Jassob force-pushed the feature/email-authorization branch from 2785856 to f4b3dcb Compare October 21, 2016 21:27
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

1 participant