GHAPI-Python for LoginSvr Source 

View attachment 280877

i can login but no email otp sent to my gmail and no otp buff 0.0

your using the email otp too? or the other one?
Email too
1745717138747 - GHAPI-Python for LoginSvr - RaGEZONE Forums
 
I have asked those who have enabled the EP33 server, and their server does not use email functionality to record user information logs. On the contrary, they create logs at the path/var/log/login apin/login apin. 2022-04-26T21-00-00.log and view them in log content mode!

Code:
{"date":"2025-04-27 09:47:38","level":"info","caller":"handler/handler.go:105","callerfunc":"handler.HandleRequest","goid":221,"message":"user_id:  User account with user_ip: User IP, authentication successful"}

We can actually modify the script to write user login information into the system log for viewing, which is simpler than sending an email! PS: Although I won't change the script, this is just my suggestion!
 
Last edited:
added small fix for email sending, it caused email can not not be sent even we config the right smtp.
This will send email in parallel and will not block the login procedure

in db.py change
import asyncio

asyncio.create_task(send_email(email_result.email, 'GHApi OTP Token', f'Here is your one time password: {otp}'))
 
Go to cabal_otp_table and add this

1 12345 1
Code:
[2025-04-27 17:43:51.111835 139808213292736]: [##ERROR##] operator()(): [DiGeamLogin] Exception : Error resolving address. user_id(1)
[2025-04-27 17:43:51.111984 139809121081024]: [Auth] DiGeamAuthWeb Verify Fail : UserIdx(1), UserNum(0), UserID(1), IP(180.141.54.170), Flag(1,2,1), RemainedTryCount(0), Waiting(0), processTick=23047(2077ms)
[2025-04-27 17:43:51.112007 139809121081024]: [Auth] Close : UserIdx(1), UserNum(0), UserID(1), IP(180.141.54.170), Flag(1,2,1)
[2025-04-27 17:43:51.112088 139811380017536]: sock 11=> close by finish waiting(180.141.54.170)
[2025-04-27 17:43:51.112171 139811380017536]: 1.close user 11 [1DAED9E0] (180.141.54.170)
[2025-04-27 17:43:53.112252 139811380017536]: sock -1 ->handle_timeout
[2025-04-27 17:43:53.112317 139811380017536]: already unlink 1DAED9E0 (status=0)

husky login,Login account password prompt: The account password is incorrect, but there is no problem logging in with Internal.txt. Is there a solution?
 
1745772509014 - GHAPI-Python for LoginSvr - RaGEZONE Forums

Code:
[2025-04-27 19:44:31.528268 140590150186688]: [SpammerTrap] Get(1). countPer1min(0), countPer10min(0), usingBadWard(0), badWordCount(0)
[2025-04-27 19:44:31.528276 140590150186688]: [HeartBeat] Register : Addr(127.0.0.1:48111)
[2025-04-27 19:44:31.529307 140590016607936]: [HeartBeat] Register : Addr(127.0.0.1:38151)
[2025-04-27 19:44:31.572034 140590050178752]: [SpamMailCheck] Get(1). WordCount(0)
[2025-04-27 19:44:32.542120 140590196726144]: run_event_loop exited. resumeEvent
[2025-04-27 19:44:32.542196 140590196726144]: pass for the 'Until FilePath Recived'
[2025-04-27 19:44:32.542645 140590196726144]: LoadWarProperty(): Load Completed.
[2025-04-27 19:44:32.542658 140590196726144]: waiting for the 'Daily Reset Time'
[2025-04-27 19:44:32.542667 140590196726144]: run_event_loop exited. resumeEvent
[2025-04-27 19:44:32.542671 140590196726144]: pass for the 'Daily Reset Time'
[2025-04-27 19:44:32.542675 140590196726144]: waiting for the 'ContentsControl'
[2025-04-27 19:45:40.683754 140590196726144]: sock 8 ->LinkHandler close
[2025-04-27 19:45:40.683985 140590196726144]: sock 9 ->LinkHandler close
[2025-04-27 19:45:45.683970 140590196726144]: [##ERROR##] remoteAddr(127.0.0.1), connectRetryNum_(19,0), serverAddr(127.0.0.1:38181)
[2025-04-27 19:45:45.684039 140590196726144]: try connect 127.0.0.1:38181, Sync
[2025-04-27 19:45:45.684209 140590196726144]: sock 8 ->LinkHandler Open
[2025-04-27 19:45:45.684218 140590196726144]: waiting for SendIPSConnect2Svr
[2025-04-27 19:45:47.684386 140590196726144]: SendIPSConnect2Svr (161:01:01:00:212)
[2025-04-27 19:45:47.684760 140590196726144]: [##ERROR##] remoteAddr(127.0.0.1), connectRetryNum_(19,0), serverAddr(127.0.0.1:38181)
[2025-04-27 19:45:47.684771 140590196726144]: try connect 127.0.0.1:38181, Sync
[2025-04-27 19:45:47.684874 140590196726144]: sock 9 ->LinkHandler Open
[2025-04-27 19:45:47.684880 140590196726144]: waiting for SendIPSConnect2Svr
[2025-04-27 19:45:49.685021 140590196726144]: SendIPSConnect2Svr (162:01:01:00:212)
[2025-04-27 19:46:41.254532 140590196726144]: sock 8 ->LinkHandler close
[2025-04-27 19:46:41.254578 140590196726144]: sock 9 ->LinkHandler close
[2025-04-27 19:46:46.254630 140590196726144]: [##ERROR##] remoteAddr(127.0.0.1), connectRetryNum_(18,0), serverAddr(127.0.0.1:38181)
[2025-04-27 19:46:46.254706 140590196726144]: try connect 127.0.0.1:38181, Sync
[2025-04-27 19:46:46.254862 140590196726144]: sock 8 ->LinkHandler Open
[2025-04-27 19:46:46.254868 140590196726144]: waiting for SendIPSConnect2Svr
[2025-04-27 19:46:48.254990 140590196726144]: SendIPSConnect2Svr (161:01:01:00:212)
[2025-04-27 19:46:48.255117 140590196726144]: [##ERROR##] remoteAddr(127.0.0.1), connectRetryNum_(18,0), serverAddr(127.0.0.1:38181)
[2025-04-27 19:46:48.255127 140590196726144]: try connect 127.0.0.1:38181, Sync
[2025-04-27 19:46:48.255226 140590196726144]: sock 9 ->LinkHandler Open
[2025-04-27 19:46:48.255231 140590196726144]: waiting for SendIPSConnect2Svr
[2025-04-27 19:46:50.255351 140590196726144]: SendIPSConnect2Svr (162:01:01:00:212)


I did everything that was said but this time the channels are not opening?
 
is this correct or do i need to edit something?

Code:
#46th add
CommonIniPath=Common.ini

DiGeamAuthWeb=1
DiGeamAuthDB=1
DiGeamOTP=1
DiGeamToken=1

AuthMethodStep1=DiGeamAuthWeb;DiGeamAuthDB

AuthMethodStep2=DiGeamOTP

[DiGeamAuthWeb]
Host=192.168.0.29:3000
Path=/game-api/game_login
#
[DiGeamOTP]
Host=192.168.0.29:3000
Path=/game-api/otp_login
#
[DiGeamToken]
Host=192.168.0.29:3000
Path1=/game-api/get_auth
Path2=/game-api/login_auth
Service=Cabal
ServerID=1100

[HTTPService]
; MOTP, Vasco, PSS, Gash string value


Code:
# Database configuration - match Node.js structure
config = {
    "user": "sa",
    "password": "YourStr0NgP4sSwoRD",
    "server": "192.168.0.29",
    "database": "Account",
    "driver": "ODBC Driver 17 for SQL Server",
    "encrypt": "yes",
    "trust_server_certificate": "yes",
    "table_names": {
        "auth": "cabal_auth_table",
        "otp": "cabal_otp_table"
    },
    "procedure_names": {
        "auth_check": "cabal_sp_auth_method_password",
        "otp_info": "cabal_sp_otpinfo_get",
        "get_user_num": "cabal_tool_userNum_get"
    }
}
 
is this correct or do i need to edit something?

Code:
#46th add
CommonIniPath=Common.ini

DiGeamAuthWeb=1
DiGeamAuthDB=1
DiGeamOTP=1
DiGeamToken=1

AuthMethodStep1=DiGeamAuthWeb;DiGeamAuthDB

AuthMethodStep2=DiGeamOTP

[DiGeamAuthWeb]
Host=192.168.0.29:3000
Path=/game-api/game_login
#
[DiGeamOTP]
Host=192.168.0.29:3000
Path=/game-api/otp_login
#
[DiGeamToken]
Host=192.168.0.29:3000
Path1=/game-api/get_auth
Path2=/game-api/login_auth
Service=Cabal
ServerID=1100

[HTTPService]
; MOTP, Vasco, PSS, Gash string value


Code:
# Database configuration - match Node.js structure
config = {
    "user": "sa",
    "password": "YourStr0NgP4sSwoRD",
    "server": "192.168.0.29",
    "database": "Account",
    "driver": "ODBC Driver 17 for SQL Server",
    "encrypt": "yes",
    "trust_server_certificate": "yes",
    "table_names": {
        "auth": "cabal_auth_table",
        "otp": "cabal_otp_table"
    },
    "procedure_names": {
        "auth_check": "cabal_sp_auth_method_password",
        "otp_info": "cabal_sp_otpinfo_get",
        "get_user_num": "cabal_tool_userNum_get"
    }
}
all good there, your vm must connected to internet though
 
Back