mirror of
https://github.com/meineerde/redmine.git
synced 2025-10-17 17:01:01 +00:00
Merged r3265 from trunk
git-svn-id: svn+ssh://rubyforge.org/var/svn/redmine/branches/0.9-stable@3266 e93f8b46-1217-0410-a6f0-8f06a7374b81
This commit is contained in:
parent
e1423c7c23
commit
4b41788848
@ -196,7 +196,7 @@ class User < Principal
|
|||||||
|
|
||||||
# Return user's API key (a 40 chars long string), used to access the API
|
# Return user's API key (a 40 chars long string), used to access the API
|
||||||
def api_key
|
def api_key
|
||||||
token = self.api_token || Token.create(:user => self, :action => 'api')
|
token = self.api_token || self.create_api_token(:action => 'api')
|
||||||
token.value
|
token.value
|
||||||
end
|
end
|
||||||
|
|
||||||
|
|||||||
Loading…
x
Reference in New Issue
Block a user