@@ -196,7 +196,7 class User < Principal | |||||
196 |
|
196 | |||
197 | # Return user's API key (a 40 chars long string), used to access the API |
|
197 | # Return user's API key (a 40 chars long string), used to access the API | |
198 | def api_key |
|
198 | def api_key | |
199 |
token = self.api_token || |
|
199 | token = self.api_token || self.create_api_token(:action => 'api') | |
200 | token.value |
|
200 | token.value | |
201 | end |
|
201 | end | |
202 |
|
202 |
General Comments 0
You need to be logged in to leave comments.
Login now