Project

General

Profile

Actions

Task #939

closed

Support #714: RedMine authentication with email address (as well as username)

Redmine switch the login with user email address instead of username

Added by Massimiliano Assante over 9 years ago. Updated over 9 years ago.

Status:
Closed
Priority:
Urgent
Category:
Application
Target version:
Start date:
Oct 09, 2015
Due date:
Oct 13, 2015
% Done:

100%

Estimated time:
Infrastructure:
Production

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

Screen Shot 2015-10-12 at 10.25.35.png (75.8 KB) Screen Shot 2015-10-12 at 10.25.35.png Massimiliano Assante, Oct 12, 2015 10:26 AM
redmine-login.html.erb.diff (1.34 KB) redmine-login.html.erb.diff Andrea Dell'Amico, Oct 12, 2015 11:49 AM
Actions #1

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?

Actions #2

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.

Actions #3

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>
Actions #4

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

Actions #6

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.

Actions #7

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.

Actions

Also available in: Atom PDF

Add picture from clipboard (Maximum size: 8.91 MB)