New feature: log in by using a session token #19
Merged
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
I have recently faced a problem where I have to share my username and password when trying to "ensure" my presence.
This PR has mainly changed the logging in logic. This PR contains changes that made it possible to log in with a session token instead of a username and a password. This way, if in some scenario, a user won't have to share their credentials.
A "session token" is actually just a string comprised of a logged in
SimasterQRPresence
instance'ssession_id
andgroup_id
. Some new methods (a way to serialize and deserialize a session token) have also been added tosimaster.py
file.From the front perspective, the
home.html
has also been changed. After logging in, there will be a small text displayed on the alert box that contains the last session token.