プロジェクト

全般

プロフィール

Vote #65791

未完了

Login by Email

Admin Redmine さんがほぼ2年前に追加. ほぼ2年前に更新.

ステータス:
New
優先度:
通常
担当者:
-
カテゴリ:
Accounts / authentication_7
対象バージョン:
-
開始日:
2009/04/20
期日:
進捗率:

0%

予定工数:
category_id:
7
version_id:
0
issue_org_id:
3956
author_id:
2173
assigned_to_id:
0
comments:
15
status_id:
1
tracker_id:
2
plus1:
7
affected_version:
closed_on:
affected_version_id:
ステータス-->[New]

説明

I was looking at a "phpBB MOD":http://www.phpbb.com/community/viewtopic.php?f=69&t=636415#p3527055 and thought this is something good any site with user authentication could use.
It lets you login with your email address, and disallows people registering new usernames that match the emails of previously registered users.


journals

--------------------------------------------------------------------------------
+1 (see #8186 for more details)
--------------------------------------------------------------------------------
I vote for this. It would be very useful.
--------------------------------------------------------------------------------
Hi! We have a heavy-used Redmine install at our company and we've found out that most users get confused with those IRC'ish logins, so we needed to patch email login in.
NB: We maintain a patch set we apply after every update, but we think that most of the people will be happy to have email login provided in the official version.

Here is the diff against trunk:

<pre>
$ svn diff
Index: app/models/user.rb
===================================================================
--- app/models/user.rb (revision 11691)
+++ app/models/user.rb (working copy)
@@ -160,7 +160,13 @@

# Make sure no one can sign in with an empty login or password
return nil if login.empty? || password.empty?
- user = find_by_login(login)
+
+ if login.match(/\A([^@\s]+)@((?:[-a-z0-9]+\.)+[a-z]{2,})\z/)
+ user = find_by_mail(login)
+ else
+ user = find_by_login(login)
+ end
+
if user
# user is already in local database
return nil unless user.active?
</pre>

--------------------------------------------------------------------------------
login using email is useful
+1
--------------------------------------------------------------------------------
+1 I maintain a redmine for freelance and personal projects and friends/customers tend to try using their emails.

A few stopped connecting to redmine due to the unmet expectation.

I think this could be an option in `/settings?tab=authentication`
--------------------------------------------------------------------------------
+1

for some people having to remember yet another username is not as trivial as it might sound, and when you use their e-mail as username it is ugly and can even mess with the issues list table's layout
--------------------------------------------------------------------------------
+1

As far as I can see, it has very little impact,and I would not need to modify user.rb file at each update :)
--------------------------------------------------------------------------------
+1
--------------------------------------------------------------------------------
+10000
--------------------------------------------------------------------------------
+1 This is so common these days and people don't have to remember another login.
--------------------------------------------------------------------------------
You can already achieve this by using the same email address as login username (attached a screenshot). IMO, current implementation is flexible enough to cover multiple use cases.

We also need to consider that an user can have multiple email addresses (which makes a possible implementation more complex).
--------------------------------------------------------------------------------
Marius BALTEANU wrote:
> You can already achieve this by using the same email address as login username (attached a screenshot). IMO, current implementation is flexible enough to cover multiple use cases.

If your email address changes you can't change your username which makes it somehow impractical. I also see it more like a second chance to get into your account if you have forgotten your username. It's not particularly a problem of mine but I have users who aren't using Redmine very often and tending to forget their username from time to time.

> We also need to consider that an user can have multiple email addresses (which makes a possible implementation more complex).

I think it would be sufficient enough to only check the primary email address.

--------------------------------------------------------------------------------
Thanks Bernhard for clarification.

It should be enough to allow users to login by username or email address, right? without any other impact in application. I'm asking because first time when I read this, I understood that we should have a setting to choose between username and email.
--------------------------------------------------------------------------------
Sorry for my late reply Marius, there seems to be an issue with notification mails on redmine.org.

Marius BALTEANU wrote:
> It should be enough to allow users to login by username or email address, right? without any other impact in application.

Yes, that's exactly what I ment. You can find it very often these days for example on GitLab, GitHub, or also on Facebook or Amazon.
It's very convenient to get into your account even if you don't remember your username. I think plan.io has done it the same way, as I can remember.
--------------------------------------------------------------------------------


related_issues

duplicates,Closed,3208,Login by Email
duplicates,Closed,8186,Login/sign-in using either email address or username

Admin Redmine さんがほぼ2年前に更新

  • カテゴリAccounts / authentication_7 にセット

他の形式にエクスポート: Atom PDF

いいね!0
いいね!0