mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-06 10:11:38 +09:00
Allow setting any URL as redirect URL after signup
This commit is contained in:
parent
6e415fafc0
commit
eccb54ca42
5 changed files with 10 additions and 35 deletions
|
|
@ -459,19 +459,8 @@ class MemberAdminController extends Member
|
|||
}
|
||||
$args->max_auth_sms_count = max(0, intval($args->max_auth_sms_count));
|
||||
$args->max_auth_sms_count_time = max(0, intval($args->max_auth_sms_count_time));
|
||||
if($args->redirect_url)
|
||||
{
|
||||
$oModuleModel = getModel('module');
|
||||
$redirectModuleInfo = $oModuleModel->getModuleInfoByModuleSrl($args->redirect_url, array('mid'));
|
||||
|
||||
if(!$redirectModuleInfo)
|
||||
{
|
||||
return new BaseObject('-1', 'msg_exist_selected_module');
|
||||
}
|
||||
|
||||
$args->redirect_mid = $redirectModuleInfo->mid;
|
||||
$args->redirect_url = getNotEncodedFullUrl('','mid',$redirectModuleInfo->mid);
|
||||
}
|
||||
$args->redirect_mid = '';
|
||||
$args->redirect_url = utf8_trim($args->redirect_url);
|
||||
|
||||
$args->phone_number_default_country = preg_replace('/[^A-Z]/', '', $args->phone_number_default_country);
|
||||
if (!array_key_exists($args->phone_number_default_country, Rhymix\Framework\i18n::listCountries()))
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue