Skip to content

Commit

Permalink
Merge pull request #1489 from cewert/save-credentials-quickconnect
Browse files Browse the repository at this point in the history
Save credentials if asked when using quick connect
  • Loading branch information
1hitsong authored Nov 11, 2023
2 parents faa9934 + 5d5d784 commit 7b4837d
Show file tree
Hide file tree
Showing 3 changed files with 3 additions and 1 deletion.
2 changes: 1 addition & 1 deletion components/quickConnect/QuickConnectDialog.bs
Original file line number Diff line number Diff line change
Expand Up @@ -33,7 +33,7 @@ sub OnAuthenticated()
authenticated = AuthenticateViaQuickConnect(m.top.quickConnectJson.secret)
if authenticated <> invalid and authenticated = true
currentUser = AboutMe()
session.user.Login(currentUser)
session.user.Login(currentUser, m.top.saveCredentials)
session.user.LoadUserPreferences()
LoadUserAbilities()
m.top.close = true
Expand Down
1 change: 1 addition & 0 deletions components/quickConnect/QuickConnectDialog.xml
Original file line number Diff line number Diff line change
Expand Up @@ -7,5 +7,6 @@
<interface>
<field id="quickConnectJson" type="assocarray" />
<field id="authenticated" type="boolean" alwaysNotify="true" />
<field id="saveCredentials" type="boolean" />
</interface>
</component>
1 change: 1 addition & 0 deletions source/ShowScenes.bs
Original file line number Diff line number Diff line change
Expand Up @@ -506,6 +506,7 @@ function CreateSigninGroup(user = "")
else
' Server user is talking to is at least 10.8 and has quick connect enabled...
m.quickConnectDialog = createObject("roSGNode", "QuickConnectDialog")
m.quickConnectDialog.saveCredentials = checkbox.checkedState[0]
m.quickConnectDialog.quickConnectJson = json
m.quickConnectDialog.title = tr("Quick Connect")
m.quickConnectDialog.message = [tr("Here is your Quick Connect code: ") + json.Code, tr("(Dialog will close automatically)")]
Expand Down

0 comments on commit 7b4837d

Please sign in to comment.