1
0
mirror of https://github.com/Daichimarukana/uwuzu.git synced 2026-06-04 19:14:41 +00:00

uwuzu v1.6.1 Hapuego

This commit is contained in:
だいちまる
2025-08-05 15:51:55 +09:00
parent e15b52a205
commit a74abbf5c0
6 changed files with 26 additions and 88 deletions
+1 -4
View File
@@ -171,12 +171,9 @@ if( !empty($_POST['btn_submit']) ) {
$result = $dbh->prepare("SELECT userid, password, loginid, authcode FROM account WHERE userid = :userid");
$result->bindValue(':userid', $userid);
// SQL実行
$result->execute();
if( empty($userid) ) {
$error_message[] = 'ユーザーIDを入力してください。(USERID_INPUT_PLEASE)';
} else {
@@ -198,7 +195,7 @@ if( !empty($_POST['btn_submit']) ) {
if($result->rowCount() > 0) {
$row = $result->fetch(); // ここでデータベースから取得した値を $row に代入する
if($row["userid"] == $userid){
if(strtolower($row["userid"]) == strtolower($userid)){
if(uwuzu_password_verify($password,$row["password"])){
if(empty($row["authcode"])){
$_SESSION['userid'] = $userid;