func (u *User) login(jwt string) {
	userInfo, err := u.setInfo(jwt)
	if err != nil {
		u.log.Error("getting user from jwt: " + err.Error())
		return
	}
	u.setUsernamesReadOnly(string(userInfo.Name))
	u.dom.SetValue("input.points", strconv.Itoa(userInfo.Points))
	u.dom.SetChecked("#tab-lobby", true)
	u.dom.SetChecked("#has-login", true)
}
// login handles requesting a login when the login button is clicked.
login handles requesting a login when the login button is clicked.
// login handles requesting a login when the login button is clicked .
func (u *User) login(jwt string) {
	userInfo, err := u.setInfo(jwt)
	if err != nil {
		u.log.Error("getting user from jwt: " + err.Error())
		return
	}
	u.setUsernamesReadOnly(string(userInfo.Name))
	u.dom.SetValue("input.points", strconv.Itoa(userInfo.Points))
	u.dom.SetChecked("#tab-lobby", true)
	u.dom.SetChecked("#has-login", true)
}
func ( u * User ) login ( jwt string ) { userInfo , err := u . setInfo ( jwt ) if err != nil { u . log . Error ( " " + err . Error ( ) ) return } u . setUsernamesReadOnly ( string ( userInfo . Name ) ) u . dom . SetValue ( " " , strconv . Itoa ( userInfo . Points ) ) u . dom . SetChecked ( " " , true ) u . dom . SetChecked ( " " , true ) }
login handles requesting a login when the login button is clicked.
login handles requesting a login when the login button is clicked .