<commit_before><?php
namespace content_enter\verify;


class model
{
	public static function post()
	{
		$mobile_email = \dash\request::post('usernameormobile');
		$send_code    = mb_strtolower(\dash\request::post('sendCod'));

		$exist_mobile_email = \dash\utility\enter::get_session('usernameormobile');

		if(!$exist_mobile_email && \dash\user::login())
		{
			if(\dash\user::detail('mobile'))
			{
				$exist_mobile_email = \dash\utility\filter::mobile(\dash\user::detail('mobile'));
			}
			elseif(\dash\user::detail('username'))
			{
				$exist_mobile_email = \dash\user::detail('username');
			}
			elseif(\dash\user::detail('email'))
			{
				$exist_mobile_email = \dash\user::detail('email');
			}
		}

		if($mobile_email !== $exist_mobile_email)
		{
			if(\dash\utility\filter::mobile($mobile_email) !== \dash\utility\filter::mobile($exist_mobile_email))
			{
				\dash\log::db('existMobileIsNotMathcBySendMobile');

				\dash\notif::error(T_("What are you doing?"));
				return false;
			}
		}

		if(!in_array($send_code, \dash\utility\enter::list_send_code_way($mobile_email)))
		{
			\dash\log::db('sendWayInvalid');
			\dash\notif::error(T_("Dont!"));
			return false;
		}

		if(\dash\url::isLocal())
		{
			\dash\notif::ok(T_("Verify code in local is :code", ['code' => '<b>11111</b>']));
		}

		$select_way = 'verify/'. $send_code;
		\dash\utility\enter::open_lock($select_way);
		\dash\utility\enter::go_to($select_way);
	}
}
?><commit_msg>fix enter notif if user not select way<commit_after><?php
namespace content_enter\verify;


class model
{
	public static function post()
	{
		$mobile_email = \dash\request::post('usernameormobile');
		$send_code    = mb_strtolower(\dash\request::post('sendCod'));

		$exist_mobile_email = \dash\utility\enter::get_session('usernameormobile');

		if(!$exist_mobile_email && \dash\user::login())
		{
			if(\dash\user::detail('mobile'))
			{
				$exist_mobile_email = \dash\utility\filter::mobile(\dash\user::detail('mobile'));
			}
			elseif(\dash\user::detail('username'))
			{
				$exist_mobile_email = \dash\user::detail('username');
			}
			elseif(\dash\user::detail('email'))
			{
				$exist_mobile_email = \dash\user::detail('email');
			}
		}

		if($mobile_email !== $exist_mobile_email)
		{
			if(\dash\utility\filter::mobile($mobile_email) !== \dash\utility\filter::mobile($exist_mobile_email))
			{
				\dash\log::db('existMobileIsNotMathcBySendMobile');

				\dash\notif::error(T_("What are you doing?"));
				return false;
			}
		}

		if(!$send_code)
		{
			\dash\notif::error(T_("Please select one way to send code"), 'sendCod');
			return false;
		}

		if(!in_array($send_code, \dash\utility\enter::list_send_code_way($mobile_email)))
		{
			\dash\log::db('sendWayInvalid');
			\dash\notif::error(T_("Dont!"));
			return false;
		}

		if(\dash\url::isLocal())
		{
			\dash\notif::ok(T_("Verify code in local is :code", ['code' => '<b>11111</b>']));
		}

		$select_way = 'verify/'. $send_code;
		\dash\utility\enter::open_lock($select_way);
		\dash\utility\enter::go_to($select_way);
	}
}
?>
{'fraction_non_alphanumeric': 0.2003922850604773, 'fraction_numerical': 0.0032690421706440013, 'mean_word_length': 4.387323943661972, 'pattern_counts': {'":': 0, '<': 9, '<?xml version=': 0, '>': 11, 'https://': 0, 'lorem ipsum': 0, 'www.': 0, 'xml': 0}, 'pii_count': 0, 'substrings_counts': 0, 'word_list_counts': {'cursed_substrings.json': 0, 'profanity_word_list.json': 0, 'sexual_word_list.json': 0, 'zh_pornsignals.json': 0}}
{'dir': 'git-commits-cleaned', 'id': '7470489', 'n_tokens_mistral': 1281, 'n_tokens_neox': 1120, 'n_words': 132}