func (s *IdentityService) UpsertHOTP(user string, otp *hotp.HOTP) error {
	bytes, err := hotp.Marshal(otp)
	if err != nil {
		return trace.Wrap(err)
	}
	err = s.backend.UpsertVal([]string{"web", "users", user},
		"hotp", bytes, 0)
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
// UpsertHOTP upserts HOTP state for user
UpsertHOTP upserts HOTP state for user
// UpsertHOTP upserts HOTP state for user
func (s *IdentityService) UpsertHOTP(user string, otp *hotp.HOTP) error {
	bytes, err := hotp.Marshal(otp)
	if err != nil {
		return trace.Wrap(err)
	}
	err = s.backend.UpsertVal([]string{"web", "users", user},
		"hotp", bytes, 0)
	if err != nil {
		return trace.Wrap(err)
	}
	return nil
}
func ( s * IdentityService ) UpsertHOTP ( user string , otp * hotp . HOTP ) error { bytes , err := hotp . Marshal ( otp ) if err != nil { return trace . Wrap ( err ) } err = s . backend . UpsertVal ( [ ] string { " " , " " , user } , " " , bytes , 0 ) if err != nil { return trace . Wrap ( err ) } return nil }
UpsertHOTP upserts HOTP state for user
UpsertHOTP upserts HOTP state for user