octoposprime / op-be-user

OctopOS Prime Backend User
http://www.octoposprime.com
MIT License
17 stars 2 forks source link

Remove CheckIsAuthenticable from Service #77

Closed Feyzanrs closed 4 months ago

Feyzanrs commented 5 months ago

The method CheckIsAuthenticable in the Service layer needs to be removed.

Path of the file to be changed

internal/domain/service/service.go

Code to be Removed

// CheckIsAuthenticable checks if a user is authenticable based on their status
func (s *Service) CheckIsAuthenticable(user *me.User) error {
    if user.UserStatus == mo.UserStatusINACTIVE {
        return mo.ErrorUserIsInactive
    }
    return nil
}

The changes will be merged into the enhance/team/66/implement-password-validation branch first. Therefore, set the base branch of the pull request as enhance/team/66/implement-password-validation.