mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
Add option to use a specific string in the URL to bypass disabled signup page
회원 가입을 닫아놓은 상태에서는 관리자도 회원 가입 기능을 테스트할 수 없는 문제를 해소하기 위해, 관리자가 설정한 특정한 문자열을 URL에 포함할 경우 회원 가입 페이지에 접근할 수 있도록 허용하는 옵션 추가
This commit is contained in:
parent
24f49d441e
commit
81882e8420
7 changed files with 56 additions and 6 deletions
|
|
@ -223,6 +223,7 @@ class memberAdminController extends member
|
|||
{
|
||||
$args = Context::gets(
|
||||
'enable_join',
|
||||
'enable_join_key',
|
||||
'enable_confirm',
|
||||
'authmail_expires',
|
||||
'authmail_expires_unit',
|
||||
|
|
@ -238,6 +239,16 @@ class memberAdminController extends member
|
|||
'member_profile_view'
|
||||
);
|
||||
|
||||
if ($args->enable_join === 'KEY')
|
||||
{
|
||||
$args->enable_join = 'N';
|
||||
$args->enable_join_key = escape(trim(utf8_normalize_spaces(rawurldecode($args->enable_join_key))));
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->enable_join_key = null;
|
||||
}
|
||||
|
||||
$args->authmail_expires = max(0, intval($args->authmail_expires));
|
||||
if(!$args->authmail_expires)
|
||||
{
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue