mirror of
https://github.com/Lastorder-DC/rhymix.git
synced 2026-01-04 01:01:41 +09:00
#279 이메일을 체크할 때 항상 대소문자 구분 없이 체크하도록 변경
This commit is contained in:
parent
07db963a30
commit
b3dfb1a051
3 changed files with 25 additions and 3 deletions
|
|
@ -265,8 +265,19 @@ class memberModel extends member
|
|||
if(!$email_address) return;
|
||||
|
||||
$args = new stdClass();
|
||||
$args->email_address = $email_address;
|
||||
$output = executeQuery('member.getMemberInfoByEmailAddress', $args);
|
||||
|
||||
$db_info = Context::getDBInfo ();
|
||||
if($db_info->master_db['db_type'] == "cubrid")
|
||||
{
|
||||
$args->email_address = strtolower($email_address);
|
||||
$output = executeQuery('member.getMemberInfoByEmailAddressForCubrid', $args);
|
||||
}
|
||||
else
|
||||
{
|
||||
$args->email_address = $email_address;
|
||||
$output = executeQuery('member.getMemberInfoByEmailAddress', $args);
|
||||
}
|
||||
|
||||
if(!$output->toBool()) return $output;
|
||||
if(!$output->data) return;
|
||||
|
||||
|
|
|
|||
|
|
@ -6,6 +6,6 @@
|
|||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="like" column="email_address" var="email_address" notnull="notnull" />
|
||||
<condition operation="equal" column="email_address" var="email_address" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
|
|
|
|||
|
|
@ -0,0 +1,11 @@
|
|||
<query id="getMemberInfoByEmailAddress" action="select">
|
||||
<tables>
|
||||
<table name="member" />
|
||||
</tables>
|
||||
<columns>
|
||||
<column name="*" />
|
||||
</columns>
|
||||
<conditions>
|
||||
<condition operation="equal" column="lcase(email_address)" var="email_address" notnull="notnull" />
|
||||
</conditions>
|
||||
</query>
|
||||
Loading…
Add table
Add a link
Reference in a new issue