Task #939
closedSupport #714: RedMine authentication with email address (as well as username)
Redmine switch the login with user email address instead of username
100%
Description
Also by changing the label (current is Login to "Email address" in the Redmine login form. Additionally a page header on top of the login form would be beneficial, sth like:
"Users of D4Science Gateways (iMarine, D4Science.org, DESCRAMBLE, and EGIP) can use their gateway credentials to login (email address plus gateway password)"
The change should be applied into the dev instance of Redmine http://redmine-d.d4science.org/
The ticket is assigned to Andrea Dell'Amico, however since this is quite an urgent matter if Andrea cannot work on this soon (today or Monday) then we need to assign this to another person.
Files
Updated by Andrea Dell'Amico over 9 years ago
- Status changed from New to In Progress
- % Done changed from 0 to 10
The change impacts a lot of application files:
app/views/account/login.html.erb
is the login page template.
The Login
text is served by the field_login
label that's spread around various locale files, In a lot of languages, under config/locales
.
It seems to me that a clean way to modify that page and preserve the modifications between software upgrades does not exist. I don't want to give up the possibility to upgrade the application (it's time to do that, btw), so we'll have to manually adjust the template after each upgrade.
The faster solution is to do not use the field_login
label inside app/views/account/login.html.erb
but insert the text string losing the localization for that field. Is it acceptable?
Updated by Massimiliano Assante over 9 years ago
Yes it is, ideally the page should look similar to the attached screenshot. Note that Lost password link was removed.
Updated by Massimiliano Assante over 9 years ago
here's the HTML to add:
<div style="border: 1px solid orange;"> <div style="font-size: 23px; color: #777; text-align: center; padding: 5px;"> Users of D4Science Gateways (iMarine, D4Science.org, DESCRAMBLE, etc.) can use their gateway credentials to login. </div> <div style="padding:30px 10px 5px; text-align: right; font-size: 9px;">Please note: if you forgot your password please use the forgot password utility on your D4Science Gateway</div> </div>
Updated by Andrea Dell'Amico over 9 years ago
- Status changed from In Progress to Feedback
- % Done changed from 10 to 90
I'm attaching the diff file. We'll need to reapply it after every upgrade of the redmine code. You can check the result here: http://redmine-d.d4science.org/login
Updated by Andrea Dell'Amico over 9 years ago
Updated by Massimiliano Assante over 9 years ago
Very good, I think we're ready to apply the switch in Redmine Production.
The switch must be applied for users authenticating against the new LDAP Server (Liferay LDAP Server). And I think would beneficial to apply it also for users authenticating against the "Previous" LDAP.
We can schedule the switch tonight after 6PM if Andrea is available and post a message on the VRE Feeds (Parthenos, BlueBRIDGE). I'll take care of changing the configuration of the Liferay iFrames pointing at Redmine.
Updated by Massimiliano Assante over 9 years ago
- Status changed from Feedback to Closed
- % Done changed from 90 to 100
- Infrastructure Production added
- Infrastructure deleted (
Development)
We completed the switch in production and it works.