(newString, hash string)
| 203 | } |
| 204 | |
| 205 | func BcryptCheckStringHash(newString, hash string) bool { |
| 206 | err := bcrypt.CompareHashAndPassword([]byte(hash), []byte(newString)) |
| 207 | return err == nil |
| 208 | } |
| 209 | |
| 210 | func AuthVersionFromValue(value interface{}) (int64, bool) { |
| 211 | switch v := value.(type) { |
no outgoing calls
no test coverage detected