mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-04-29 07:12:15 +09:00
Add option to disallow symbols in nickname #886
This commit is contained in:
parent
f07b971e1e
commit
750045d095
5 changed files with 60 additions and 0 deletions
|
|
@ -209,6 +209,8 @@ class memberAdminController extends member
|
|||
'password_hashing_auto_upgrade',
|
||||
'password_change_invalidate_other_sessions',
|
||||
'update_nickname_log',
|
||||
'nickname_symbols',
|
||||
'nickname_symbols_allowed_list',
|
||||
'allow_duplicate_nickname',
|
||||
'member_profile_view'
|
||||
);
|
||||
|
|
@ -242,6 +244,12 @@ class memberAdminController extends member
|
|||
{
|
||||
$args->password_hashing_auto_upgrade = 'N';
|
||||
}
|
||||
|
||||
if(!in_array($args->nickname_symbols, ['Y', 'N', 'LIST']))
|
||||
{
|
||||
$args->nickname_symbols = 'Y';
|
||||
}
|
||||
$args->nickname_symbols_allowed_list = utf8_trim($args->nickname_symbols_allowed_list);
|
||||
|
||||
$oModuleController = getController('module');
|
||||
$output = $oModuleController->updateModuleConfig('member', $args);
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue