Skip to content

Commit 5686543

Browse files
authored
If credentials should not be stored remove them from connection form after successful connection (#1802)
1 parent ba78ebf commit 5686543

File tree

1 file changed

+6
-0
lines changed

1 file changed

+6
-0
lines changed

src/browser/modules/Stream/Auth/ConnectionForm.tsx

Lines changed: 6 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -141,6 +141,12 @@ export class ConnectionForm extends Component<any, ConnectionFormState> {
141141
},
142142
(res: any) => {
143143
if (res.success) {
144+
//If credentials should not be stored, remove them from form
145+
if (!this.props.storeCredentials)
146+
this.setState({
147+
username: '',
148+
password: ''
149+
})
144150
doneFn()
145151
this.saveAndStart()
146152
} else {

0 commit comments

Comments
 (0)