qBittorrent
qBittorrent copied to clipboard
Logout existing sessions after an auth config change
Closes #18443.
UPDATE, disregard the above. It should be done in
WebUI::configure()instead. This is where the server updates the configuration.
The same as currently. WebUI will have to store the previous username/password values to detect that they have changed.
The same as currently. WebUI will have to store the previous username/password values to detect that they have changed.
I think the following should work:
- add a new signal
Preferences::webCredentialsChanged() - the new signal will be emitted when the webui username updated or password hash updated. (no need to compare to the old value, just emit the signal)
- WebApplication will connect to the signal and remove all sessions when receiving the signal.
I think the following should work:
- add a new signal
Preferences::webCredentialsChanged()- the new signal will be emitted when the webui username updated or password hash updated. (no need to compare to the old value, just emit the signal)
- WebApplication will connect to the signal and remove all sessions when receiving the signal.
It could do the job.
Closes #18443.
It also mentions some other settings besides the username and password, changing which should lead to the termination of sessions.
How about it?
It also mentions some other settings besides the username and password, changing which should lead to the termination of sessions.
How about it?
Done.
just checking in about this status of this PR
This PR is stale because it has been 60 days with no activity. This PR will be automatically closed within 7 days if there is no further activity.
This PR was closed because it has been stalled for some time with no activity.