This is the initial implementation of login via OpenID
This is the patch presented in trac ticket #2500 With this commit, it is possible to assosciate an openID to an existing OSM account. Once associated, it is possible to either login via OpenID, or as always via username and password. Other aspects, such as account creation and the need for a valid email are unchanged.
This commit is contained in:
parent
58bb08aba8
commit
ca558c692e
8 changed files with 196 additions and 17 deletions
|
@ -22,6 +22,7 @@ class User < ActiveRecord::Base
|
|||
validates_confirmation_of :pass_crypt#, :message => ' must match the confirmation password'
|
||||
validates_uniqueness_of :display_name, :allow_nil => true
|
||||
validates_uniqueness_of :email
|
||||
validates_uniqueness_of :openid_url, :allow_nil => true
|
||||
validates_length_of :pass_crypt, :within => 8..255
|
||||
validates_length_of :display_name, :within => 3..255, :allow_nil => true
|
||||
validates_length_of :email, :within => 6..255
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue