Merge pull request #16 from rshmhrj/fix-borrowing-book-empty-password-error
🐛 update user.Validate to not check password, which was causing a failure when trying to borrow a book
This commit is contained in:
+1
-1
@@ -72,7 +72,7 @@ func (u *User) GetBook(id ID) (ID, error) {
|
||||
|
||||
//Validate validate data
|
||||
func (u *User) Validate() error {
|
||||
if u.Email == "" || u.FirstName == "" || u.LastName == "" || u.Password == "" {
|
||||
if u.Email == "" || u.FirstName == "" || u.LastName == "" {
|
||||
return ErrInvalidEntity
|
||||
}
|
||||
|
||||
|
||||
Reference in New Issue
Block a user