//LoginUser logs in a user and returns a SessionToken
LoginUser logs in a user and returns a SessionToken
// LoginUser logs in a user and returns a SessionToken
func (ac *AuthController) LoginUser(attempt AuthAttempt) (string, error) {
	_, err := mail.ParseAddress(attempt.Email)
	if err != nil {
		return "", errors.New(swizzle.EmailInvalid)
	}
}
func ( ac * AuthController ) LoginUser ( attempt AuthAttempt ) ( string , error ) { _ , err := mail . ParseAddress ( attempt . Email ) if err != nil { return " " , errors . New ( swizzle . EmailInvalid ) } }
LoginUser logs in a user and returns a SessionToken
LoginUser logs in a user and returns a SessionToken
// Check that email is an actual email // Find User with that email and retrieve hashed password // TODO: