Skip to content

Commit b4cccdc

Browse files
authored
Fixed a bug (when using login by username / pw, the session id was saved in the session.session_id attribute, not in the session.id attribute)
Signed-off-by: Tim <[email protected]>
1 parent 41ecf9a commit b4cccdc

File tree

1 file changed

+1
-1
lines changed

1 file changed

+1
-1
lines changed

scratchattach/site/session.py

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -1045,7 +1045,7 @@ def login_by_id(session_id: str, *, username: Optional[str] = None, password: Op
10451045
# Generate session_string (a scratchattach-specific authentication method)
10461046
issue_login_warning()
10471047
if password is not None:
1048-
session_data = dict(session_id=session_id, username=username, password=password)
1048+
session_data = dict(id=session_id, username=username, password=password)
10491049
session_string = base64.b64encode(json.dumps(session_data).encode()).decode()
10501050
else:
10511051
session_string = None

0 commit comments

Comments
 (0)