Skip to content
Snippets Groups Projects
Commit 916165df authored by Andrey Kumanyaev's avatar Andrey Kumanyaev
Browse files

username is default param to User

parent df64bdff
No related branches found
No related tags found
2 merge requests!2940Expanding repos and hooks paths in settings,!2772fix edit project members access link and page fixes refs #2745
Loading
Loading
@@ -143,6 +143,11 @@ class User < ActiveRecord::Base
#
# Instance methods
#
def to_param
username
end
def generate_password
if self.force_random_password
self.password = self.password_confirmation = Devise.friendly_token.first(8)
Loading
Loading
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment