Skip to content

Commit c46510b

Browse files
committed
refactor(settings): Re-add user email key to lexicon
Signed-off-by: Peter Ringelmann <[email protected]>
1 parent 11eaa04 commit c46510b

File tree

1 file changed

+9
-0
lines changed

1 file changed

+9
-0
lines changed

apps/settings/lib/ConfigLexicon.php

Lines changed: 9 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -8,6 +8,7 @@
88
*/
99
namespace OCA\Settings;
1010

11+
use OCP\Config\IUserConfig;
1112
use OCP\Config\Lexicon\Entry;
1213
use OCP\Config\Lexicon\ILexicon;
1314
use OCP\Config\Lexicon\Strictness;
@@ -19,6 +20,7 @@
1920
* Please Add & Manage your Config Keys in that file and keep the Lexicon up to date!
2021
*/
2122
class ConfigLexicon implements ILexicon {
23+
public const USER_SETTINGS_EMAIL = 'email';
2224
public const USER_LIST_SHOW_STORAGE_PATH = 'user_list_show_storage_path';
2325
public const USER_LIST_SHOW_USER_BACKEND = 'user_list_show_user_backend';
2426
public const USER_LIST_SHOW_LAST_LOGIN = 'user_list_show_last_login';
@@ -36,6 +38,13 @@ public function getAppConfigs(): array {
3638

3739
public function getUserConfigs(): array {
3840
return [
41+
new Entry(
42+
key: self::USER_SETTINGS_EMAIL,
43+
type: ValueType::STRING,
44+
defaultRaw: '',
45+
definition: 'account mail address',
46+
flags: IUserConfig::FLAG_INDEXED,
47+
),
3948
new Entry(
4049
key: self::USER_LIST_SHOW_STORAGE_PATH,
4150
type: ValueType::BOOL,

0 commit comments

Comments
 (0)