@@ -43,21 +43,21 @@ class Login extends React.Component {
4343 window . show_prompt = this . show_prompt . bind ( this ) ;
4444 window . show_message = this . show_message . bind ( this ) ;
4545 }
46- changeUserName ( event , index , selectedUserName ) {
46+ changeUserName = ( event , index , selectedUserName ) => {
4747 this . props . changeSetting ( 'userName' , index , selectedUserName ) ;
4848 if ( this . getUserByName ( selectedUserName ) . session )
4949 this . changesessionKey ( null , null , this . getUserByName ( selectedUserName ) . session ) ;
5050 console . debug ( 'Changed user to' , selectedUserName || index ) ;
5151 }
52- changesessionKey ( event , index , sessionKey ) {
52+ changesessionKey = ( event , index , sessionKey ) => {
5353 this . props . changeSetting ( 'sessionKey' , index , sessionKey ) ;
5454 console . debug ( 'Changed session to' , sessionKey ) ;
5555 }
5656 passwordWarningStyle = {
5757 color : orange500 ,
5858 borderColor : orange500
5959 }
60- updatePassword ( event ) {
60+ updatePassword = ( event ) => {
6161
6262 // Show warning if capslock is enabled
6363 if ( capsLock . status ) {
@@ -159,7 +159,7 @@ class Login extends React.Component {
159159 </ div >
160160 < div className = "form-container" >
161161 { userSelect }
162- < TextField id = "password-input" floatingLabelStyle = { this . state . passwordStyle } errorStyle = { this . state . passwordStyle } underlineStyle = { this . state . passwordStyle } fullWidth = { true } floatingLabelText = { < FormattedMessage id = "password" defaultMessage = "Password" /> } type = "password" value = { this . state . password || '' } onChange = { this . updatePassword . bind ( this ) } autoFocus = { ! lightdm . hide_users } errorText = { this . state . passwordError } hintText = { this . state . passwordHint } />
162+ < TextField id = "password-input" floatingLabelStyle = { this . state . passwordStyle } errorStyle = { this . state . passwordStyle } underlineStyle = { this . state . passwordStyle } fullWidth = { true } floatingLabelText = { < FormattedMessage id = "password" defaultMessage = "Password" /> } type = "password" value = { this . state . password || '' } onChange = { this . updatePasswordy } autoFocus = { ! lightdm . hide_users } errorText = { this . state . passwordError } hintText = { this . state . passwordHint } />
163163 < SelectField fullWidth = { true } floatingLabelText = { < FormattedMessage id = "session" defaultMessage = "Session" /> } value = { this . props . settings . sessionKey } onChange = { this . changesessionKey } >
164164 { sessions }
165165 </ SelectField >
0 commit comments