From da06d2bd386ddc08832ca2e058947de59dacf155 Mon Sep 17 00:00:00 2001 From: Daichimarukana Date: Sun, 18 Aug 2024 21:30:45 +0900 Subject: [PATCH] uwuzu v1.4.1 Funium --- authlogin.php | 2 +- passrecovery/startrecovery.php | 2 +- server/uwuzuabout.txt | 2 +- server/uwuzuinfo.txt | 2 +- server/uwuzurelease.txt | 4 ++++ update.json | 17 +++++++++++++++++ 6 files changed, 25 insertions(+), 4 deletions(-) create mode 100644 update.json diff --git a/authlogin.php b/authlogin.php index f24c6e5..82d3d9b 100644 --- a/authlogin.php +++ b/authlogin.php @@ -230,7 +230,7 @@ if( !empty($_POST['btn_submit']) ) { if($result->rowCount() > 0) { $row = $result->fetch(); - if(!(empty($row["encryption_ivkey"])) && (!($row["authcode"] === 16))){ + if(!(empty($row["encryption_ivkey"])) && (!(mb_strlen($row["authcode"]) === 16))){ $tousercode = DecryptionUseEncrKey($row["authcode"], GenUserEnckey($row["datetime"]), $row["encryption_ivkey"]); }else{ $tousercode = $row["authcode"]; diff --git a/passrecovery/startrecovery.php b/passrecovery/startrecovery.php index f156a44..57033ea 100644 --- a/passrecovery/startrecovery.php +++ b/passrecovery/startrecovery.php @@ -168,7 +168,7 @@ if(!($userid == null)){ if($result->rowCount() > 0) { $row = $result->fetch(); - if(!(empty($row["encryption_ivkey"])) && (!($row["authcode"] === 16))){ + if(!(empty($row["encryption_ivkey"])) && (!(mb_strlen($row["authcode"]) === 16))){ $tousercode = DecryptionUseEncrKey($row["authcode"], GenUserEnckey($row["datetime"]), $row["encryption_ivkey"]); }else{ $tousercode = $row["authcode"]; diff --git a/server/uwuzuabout.txt b/server/uwuzuabout.txt index 6419e1d..8f79eed 100644 --- a/server/uwuzuabout.txt +++ b/server/uwuzuabout.txt @@ -245,4 +245,4 @@ WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE. ## 更新情報 編集者 : daichimarukana -最終更新日 : 2024/08/18 19:43 \ No newline at end of file +最終更新日 : 2024/03/26 22:32 \ No newline at end of file diff --git a/server/uwuzuinfo.txt b/server/uwuzuinfo.txt index 1508d2e..170010e 100644 --- a/server/uwuzuinfo.txt +++ b/server/uwuzuinfo.txt @@ -1,4 +1,4 @@ uwuzu -1.4.0 +1.4.1 2024/08/18 daichimarukana,putonfps \ No newline at end of file diff --git a/server/uwuzurelease.txt b/server/uwuzurelease.txt index 79a5c1e..526ff92 100644 --- a/server/uwuzurelease.txt +++ b/server/uwuzurelease.txt @@ -1,6 +1,10 @@ ## リリースノートだぜぇぇぇぇぇぇい!!!!!!! ここにはuwuzuの更新情報を載せてくぜぇ~!(いやまてテンションおかしいだろ...) +### Version 1.4.1 (Funium) +リリース日:2024/08/18 +fix: 二段階認証を設定しているアカウントがログインできない問題を修正しました。 + ### Version 1.4.0 (Funium) リリース日:2024/08/18 fix: php 8.3未満のphpを使用していた場合にエラーが発生してしまう問題を修正しました。 diff --git a/update.json b/update.json new file mode 100644 index 0000000..96c1856 --- /dev/null +++ b/update.json @@ -0,0 +1,17 @@ +{ + "software": "uwuzu", + "version": "1.4.1", + "release_date": "2024-08-18", + "release_notes": "このアップデートでは二段階認証を設定しているユーザーがログインできない問題を修正しました。\n他の変更点はありません。", + "notices": "アップデートの前に、データのバックアップを行うことをおすすめします!", + "files": { + "overwrite": [ + "/authlogin.php", + "/passrecovery/startrecovery.php", + "/server/uwuzuabout.txt", + "/server/uwuzuinfo.txt", + "/server/uwuzurelease.txt" + ], + "delete": [] + } +}