Skip to content

Commit

Permalink
Merge pull request #987 from linuslundahl/fix/user-add-issue
Browse files Browse the repository at this point in the history
Fix issue with `:server user add`.
  • Loading branch information
linuslundahl authored Nov 13, 2019
2 parents 9249231 + af45127 commit ee197a3
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 2 deletions.
2 changes: 1 addition & 1 deletion src/browser/modules/User/UserAdd.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -300,7 +300,7 @@ export class UserAdd extends Component {
<StyledFormElement>
<StyledLabel>
<StyledInput
onClick={this.updateForcePasswordChange.bind(this)}
onChange={this.updateForcePasswordChange.bind(this)}
checked={this.state.forcePasswordChange}
disabled={isLoading}
type='checkbox'
Expand Down
2 changes: 1 addition & 1 deletion src/shared/modules/cypher/boltUserHelper.js
Original file line number Diff line number Diff line change
Expand Up @@ -29,7 +29,7 @@ export function createDatabaseUser ({
password,
forcePasswordChange
}) {
return `CALL dbms.security.createUser("${username}", "${password}", ${forcePasswordChange})`
return `CALL dbms.security.createUser("${username}", "${password}", ${!!forcePasswordChange})`
}
export function deleteUser (username) {
return `CALL dbms.security.deleteUser("${username}")`
Expand Down

0 comments on commit ee197a3

Please sign in to comment.