func (c *Client) CheckPassword(user string,
	password []byte, hotpToken string) error {
	_, err := c.PostJSON(
		c.Endpoint("users", user, "web", "password", "check"),
		checkPasswordReq{
			Password:  string(password),
			HOTPToken: hotpToken,
		})
	return trace.Wrap(err)
}
// CheckPassword checks if the suplied web access password is valid.
CheckPassword checks if the suplied web access password is valid.
// CheckPassword checks if the suplied web access password is valid .
func (c *Client) CheckPassword(user string,
	password []byte, hotpToken string) error {
	_, err := c.PostJSON(
		c.Endpoint("users", user, "web", "password", "check"),
		checkPasswordReq{
			Password:  string(password),
			HOTPToken: hotpToken,
		})
	return trace.Wrap(err)
}
func ( c * Client ) CheckPassword ( user string , password [ ] byte , hotpToken string ) error { _ , err := c . PostJSON ( c . Endpoint ( " " , user , " " , " " , " " ) , checkPasswordReq { Password : string ( password ) , HOTPToken : hotpToken , } ) return trace . Wrap ( err ) }
CheckPassword checks if the suplied web access password is valid.
CheckPassword checks if the suplied web access password is valid .