|
@@ -83,7 +83,7 @@ class auth_plugin_macaroons extends auth_plugin_base {
|
83
|
83
|
}
|
84
|
84
|
]);
|
85
|
85
|
|
86
|
|
- if($v->verify($m, "pocsecret")) {
|
|
86
|
+ if($v->verify($m, $this->config->secret)) {
|
87
|
87
|
$name = explode(";", $m->getIdentifier());
|
88
|
88
|
$login = join("", $name);
|
89
|
89
|
$user = authenticate_user_login($login, null);
|
|
@@ -208,8 +208,12 @@ class auth_plugin_macaroons extends auth_plugin_base {
|
208
|
208
|
if(!isset($config->email_config)) {
|
209
|
209
|
$config->email_config = '';
|
210
|
210
|
}
|
|
211
|
+ if(!isset($config->secret)) {
|
|
212
|
+ $config->secret = '';
|
|
213
|
+ }
|
211
|
214
|
|
212
|
215
|
set_config('email_config', $config->email_config, self::COMPONENT_NAME);
|
|
216
|
+ set_config('secret', $config->secret, self::COMPONENT_NAME);
|
213
|
217
|
return true;
|
214
|
218
|
}
|
215
|
219
|
|