Jump to content
  • 0

Web Auth Token assist please


Moooooon-Aisha

Question


  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

I'm not sure if this is the correct catogory,

Below is the web auth token thing for my server. But even when "disabled" it still runs on my login and it's causing me login issues. How can this be resolved?

 

// Enable web authentication token system
// This is required for new clients that get data via an additional API over HTTP
use_web_auth_token: no

// Delay (in milliseconds) disabling webtoken after character logs off
// There's a race condition when the client logs off. The char-server could revoke the token before
// the client can save the changed configs.
disable_webtoken_delay: 0

 

image.png.c5c4c9d78674148ddcfcbb5d4e33dd9b.png

image.png

Link to comment
Share on other sites

4 answers to this question

Recommended Posts

  • 0

  • Group:  Members
  • Topic Count:  23
  • Topics Per Day:  0.01
  • Content Count:  116
  • Reputation:   18
  • Joined:  09/08/17
  • Last Seen:  

diff --git a/src/login/login.cpp b/src/login/login.cpp
index b35fa5e1b..ea12eccf2 100644
--- a/src/login/login.cpp
+++ b/src/login/login.cpp
@@ -121,7 +121,8 @@ void login_remove_online_user(uint32 account_id) {
                delete_timer( p->waiting_disconnect, login_waiting_disconnect_timer );
        }
 
-       accounts->disable_webtoken( accounts, account_id );
+       if (login_config.use_web_auth_token)
+               accounts->disable_webtoken( accounts, account_id );
 
        online_db.erase( account_id );
 }

Was assisted via discord by Nitrous, this issue resolved the disabled message to appear on the logs, but it still did not really improve the issue that I can not login again after getting disconnected to the login screen.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  04/02/23
  • Last Seen:  

I have the same problem, have you been able to solve it?

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  0
  • Topics Per Day:  0
  • Content Count:  1
  • Reputation:   0
  • Joined:  03/02/21
  • Last Seen:  

have you solved this problem ?
please give us the 2cent.

Link to comment
Share on other sites

  • 0

  • Group:  Members
  • Topic Count:  1
  • Topics Per Day:  0.00
  • Content Count:  11
  • Reputation:   0
  • Joined:  08/16/17
  • Last Seen:  

Anybody found a solution to this? Facing similar issue!

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Answer this question...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

×
×
  • Create New...