Skip to content
This repository has been archived by the owner on Jul 11, 2019. It is now read-only.

Allows the user to login only via email without reseting the password #426

Open
wants to merge 4 commits into
base: develop
Choose a base branch
from
Open
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
3 changes: 3 additions & 0 deletions etc/adhocracy.ini.in
Original file line number Diff line number Diff line change
Expand Up @@ -388,6 +388,9 @@ adhocracy.static_index_path = index
# Ask the user for email and then password, instead of form + links
# adhocracy.login_style = alternate

# Determines how long an email login link is valid in seconds
3600
Copy link
Collaborator

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Before merging, we need to change this line, btw.


# Force randomized user names (default: false)
# adhocracy.force_randomized_user_names = true

Expand Down
3 changes: 2 additions & 1 deletion src/adhocracy/config/routing.py
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,8 @@ def make_map(config):
action='dashboard_pages')
map.connect('/welcome/{id}/{token}', controller='user',
action='welcome')

map.connect('/emaillogin/{id}/{token}', controller='user',
action='emaillogin')
map.resource('user', 'user', member={'votes': 'GET',
'delegations': 'GET',
'votes': 'GET',
Expand Down
Loading