Commit graph

15 commits

Author SHA1 Message Date
Brett Walker
d97b577a1b must now set the devise default scope (since we now have an :email scope)
and rubocop fixes
2017-09-24 19:52:49 +02:00
Brett Walker
665c7876fa added email.confirmed scope and fix email comparison 2017-09-23 15:26:04 +02:00
Brett Walker
442dbf6d4b when user verifies a secondary email, revalidate GPG signatures 2017-09-23 15:26:04 +02:00
Brett Walker
f9f4672275 Send a confirmation email when the user adds a secondary email address. Utilizes the Devise confirmable capabilities. Issue #37385 2017-09-23 15:23:11 +02:00
Semyon Pupkov
b1ce2eb1e5 refactor(email): use setter method instead AR callbacks 2016-10-23 17:30:07 +05:00
Jeroen van Baarsen
f1479b56b7
Remove the annotate gem and delete old annotations
In 8278b763d9 the default behaviour of annotation
has changes, which was causing a lot of noise in diffs. We decided in #17382
that it is better to get rid of the whole annotate gem, and instead let people
look at schema.rb for the columns in a table.

Fixes: #17382
2016-05-09 18:00:28 +02:00
Zeger-Jan van de Weg
47da013cf8 Annotate the models 2016-05-06 08:27:46 +02:00
Rémy Coutable
b3635ee46a Re-add EmailValidator to avoid the repetition of format: { with: Devise.email_regexp } 2016-02-09 18:15:35 +01:00
Rémy Coutable
b34963bc12 Validate email addresses using Devise.email_regexp
Also:
- Get rid of legacy :strict_mode
- Get rid of custom :email validator
- Add some shared examples to spec emails validation
2016-02-09 18:15:35 +01:00
Douwe Maan
d386bb7808 Allow primary email to be set to an email that you've already added. 2015-04-30 16:17:03 +02:00
Dmitriy Zaporozhets
62ed1c537e Explicitly define ordering in models using default_scope 2015-02-05 14:20:55 -08:00
Dmitriy Zaporozhets
98ba075c32
User model to strong params. Comment other attr_accessible to let tests run
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-06-26 15:11:45 +03:00
Dmitriy Zaporozhets
36f861f1b1
Re-annotate models
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-09 15:05:03 +03:00
Dmitriy Zaporozhets
599344583b
Remove EmailsObserver
Signed-off-by: Dmitriy Zaporozhets <dmitriy.zaporozhets@gmail.com>
2014-04-02 21:02:02 +03:00
Jason Hollingsworth
29cfd33d94 Add email aliases for users
Emails are used to associate commits with users. The emails
are not verified and don't have to be valid email addresses. They
are assigned on a first come, first serve basis.

Notifications are sent when an email is added.
2014-02-13 22:59:39 -06:00