Usability & design improvements
This commit is contained in:
parent
9a24ccdea1
commit
94db8a1c33
21 changed files with 190 additions and 89 deletions
|
@ -42,7 +42,7 @@ class Commit
|
|||
end
|
||||
|
||||
def author_name
|
||||
author.name
|
||||
author.name.force_encoding("UTF-8")
|
||||
end
|
||||
|
||||
def committer_name
|
||||
|
|
|
@ -65,7 +65,11 @@ class User < ActiveRecord::Base
|
|||
|
||||
def self.generate_random_password
|
||||
(0...8).map{ ('a'..'z').to_a[rand(26)] }.join
|
||||
end
|
||||
end
|
||||
|
||||
def first_name
|
||||
name.split(" ").first unless name.blank?
|
||||
end
|
||||
|
||||
def self.find_for_ldap_auth(omniauth)
|
||||
username = omniauth.sAMAccountName[0]
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue