Skip to content
This repository was archived by the owner on Jul 8, 2022. It is now read-only.

Commit 3447ac7

Browse files
feat: allow registering via oauth when main is disabled
1 parent 578cbb3 commit 3447ac7

File tree

3 files changed

+3
-0
lines changed

3 files changed

+3
-0
lines changed

conf/default.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,3 +8,4 @@
88
$conf['client-key'] = '';
99
$conf['client-secret'] = '';
1010
$conf['redirect-uri'] = '';
11+
$conf['register-on-auth'] = 0;

conf/metadata.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -29,3 +29,4 @@ public function html(&$plugin, $echo = false) {
2929
$meta['client-key'] = array('string');
3030
$meta['client-secret'] = array('string');
3131
$meta['redirect-uri'] = array('string');
32+
$meta['register-on-auth'] = array('onoff','_caution' => 'security');

lang/en/settings.php

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -9,3 +9,4 @@
99
$lang['info'] = 'Redirect URI to use when configuring the applications';
1010
$lang['client-key'] = 'The Client ID';
1111
$lang['client-secret'] = 'The Client Secret';
12+
$lang['register-on-auth'] = 'Register authenticated users even if self-registration is disabled in main configuration';

0 commit comments

Comments
 (0)