mirror of
https://gerrit.wikimedia.org/r/mediawiki/extensions/OATHAuth
synced 2024-11-24 08:14:15 +00:00
Allow override of Site prefix without changing sitename
Bug: T147901 Change-Id: Id5b565f9c05b591e3638dbf51dd784224203669c
This commit is contained in:
parent
56523b60cc
commit
872a4768ff
|
@ -32,8 +32,11 @@ class OATHUser {
|
|||
* @return String
|
||||
*/
|
||||
public function getAccount() {
|
||||
global $wgSitename;
|
||||
global $wgSitename, $wgOATHAuthAccountPrefix;
|
||||
|
||||
if ( $wgOATHAuthAccountPrefix !== false ) {
|
||||
return "$wgOATHAuthAccountPrefix:{$this->user->getName()}";
|
||||
}
|
||||
return "$wgSitename:{$this->user->getName()}";
|
||||
}
|
||||
|
||||
|
|
|
@ -58,7 +58,8 @@
|
|||
"config": {
|
||||
"OATHAuthWindowRadius": 4,
|
||||
"OATHAuthDatabase": false,
|
||||
"OATHAuthSecret": false
|
||||
"OATHAuthSecret": false,
|
||||
"OATHAuthAccountPrefix": false
|
||||
},
|
||||
"ResourceModules": {
|
||||
"ext.oathauth": {
|
||||
|
|
Loading…
Reference in a new issue