Skip to content
This repository has been archived by the owner on Oct 7, 2024. It is now read-only.

Commit

Permalink
Disable Version Block (#81)
Browse files Browse the repository at this point in the history
* [remove] - 通常認証時のバージョン確認無効化

* [remove] - クッキー認証時のバージョン確認無効化
  • Loading branch information
NfoAlex authored Feb 13, 2024
1 parent 0771492 commit 7d030e6
Showing 1 changed file with 2 additions and 17 deletions.
19 changes: 2 additions & 17 deletions socketHandlers/socketAuth.js
Original file line number Diff line number Diff line change
Expand Up @@ -27,15 +27,8 @@ module.exports = (io) => {
password:this.pwForAuth
}
*/
console.log("auth :: 受信 ↓");
console.log(key);

//バージョンチェック
if ( CLIENT_VERSION !== SERVER_VERSION ) {
console.log("クライアントとのバージョンが違います");
return -1;

}
// console.log("auth :: 受信 ↓");
// console.log(key);

let loginAttempt = await auth.authUser(key); //ログイン結果

Expand Down Expand Up @@ -128,14 +121,6 @@ module.exports = (io) => {
sessionid: sessionid
}
*/
console.log("index :: authByCookie : 認証time");

//バージョンチェック
if ( CLIENT_VERSION !== SERVER_VERSION ) {
console.log("クライアントとのバージョンが違います");
return -1;

}

//ログイン結果
let loginAttempt = auth.authUserBySession(cred);
Expand Down

0 comments on commit 7d030e6

Please sign in to comment.