Skip to content

Commit

Permalink
[Fix #18] Fixed not disabled username
Browse files Browse the repository at this point in the history
  • Loading branch information
LaChope committed Dec 13, 2023
1 parent 2488108 commit fae0844
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion js/components/user/User.js
Original file line number Diff line number Diff line change
Expand Up @@ -212,7 +212,7 @@ class User extends React.Component {
<div className='row'>
<div className='col-12 col-sm-6'>
<HorizontalInput type='text' name='username' label={`${this.i18n('user.username')}*`}
disabled={!user.isNew && isUsingOidcAuth()}
disabled={!user.isNew || isUsingOidcAuth()}
labelWidth={3} inputWidth={8}
value={user.username} onChange={this._onChange}
iconRight={user.isNew ? generateButton : null}/>
Expand Down

0 comments on commit fae0844

Please sign in to comment.