Skip to content

Commit

Permalink
Closes #1038
Browse files Browse the repository at this point in the history
  • Loading branch information
Spurs20 committed Jan 14, 2022
1 parent 4596dcf commit 76c5980
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
3 changes: 2 additions & 1 deletion web-server/components/SmbAuthentication.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -200,8 +200,9 @@ export default class SmbAuthentication extends React.Component<any,any> {
*/
handleKeyDown = (e) => {
if (e.key === 'Enter') {
let last_key = e.key;
this.props.callBack(this.state.hostname, this.b64EncodeUnicode(this.state.username),
this.b64EncodeUnicode(this.state.password), this.state.share, this.state.session_exists);
this.b64EncodeUnicode(this.state.password), this.state.share, this.state.session_exists, last_key);
}
}

Expand Down
6 changes: 5 additions & 1 deletion web-server/plugins/slycat-parameter-image/js/wizard-ui.js
Original file line number Diff line number Diff line change
Expand Up @@ -201,12 +201,16 @@ function constructor(params)
console.log("onReauth");
};

const setSmbAuthValues = function(hostname, username, password, share, session_exists) {
const setSmbAuthValues = function(hostname, username, password, share, session_exists, last_key) {
component.remote.hostname(hostname)
component.remote.username(username)
component.remote.password(password)
component.remote.share(share)
component.remote.session_exists(session_exists)
//If the user hits enter key, try to connect
if(last_key === 'Enter') {
component.connectSMB();
}
}

component.select_type = function() {
Expand Down

0 comments on commit 76c5980

Please sign in to comment.