You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This update adds a new method CheckUserPassword to the CommandAdapter to enhance password verification functionality. This method ensures that the user password can be checked in the application layer.
package application
import (
"context"
me "github.com/octoposprime/op-be-user/internal/domain/model/entity"
)
// CreateUser sends the given user to the application layer for creating a new user.func (aCommandAdapter) CreateUser(ctx context.Context, user me.User) (me.User, error) {
returna.Service.CreateUser(ctx, user)
}
// UpdateUserBase sends the given base values of the user to the repository of the infrastructure layer for updating base values of user data.func (aCommandAdapter) UpdateUserBase(ctx context.Context, user me.User) (me.User, error) {
returna.Service.UpdateUserBase(ctx, user)
}
// UpdateUserStatus sends the given status value of the user to the repository of the infrastructure layer for updating status of user data.func (aCommandAdapter) UpdateUserStatus(ctx context.Context, user me.User) (me.User, error) {
returna.Service.UpdateUserStatus(ctx, user)
}
// UpdateUserRole sends the given type value of the user to the repository of the infrastructure layer for updating role of user data.func (aCommandAdapter) UpdateUserRole(ctx context.Context, user me.User) (me.User, error) {
returna.Service.UpdateUserRole(ctx, user)
}
// DeleteUser sends the given user to the application layer for deleting data.func (aCommandAdapter) DeleteUser(ctx context.Context, user me.User) (me.User, error) {
returna.Service.DeleteUser(ctx, user)
}
// ChangePassword sends the given user password to the application layer for changing user password.func (aCommandAdapter) ChangePassword(ctx context.Context, userPassword me.UserPassword) error {
returna.Service.ChangePassword(ctx, userPassword)
}
// CheckUserPassword sends the given user and user password to the application layer for checking user password.func (aCommandAdapter) CheckUserPassword(ctx context.Context, user me.User, userPassword me.UserPassword) (me.User, error) {
returna.Service.CheckUserPassword(ctx, user, userPassword)
}
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.
The text was updated successfully, but these errors were encountered:
This update adds a new method
CheckUserPassword
to theCommandAdapter
to enhance password verification functionality. This method ensures that the user password can be checked in the application layer.Path of the file to be changed
internal/application/presentation/adapter/command/user.go
Updated Code
The changes will be merged into the
enhance/team/66/implement-password-validation
branch first. Therefore, set the base branch of the pull request asenhance/team/66/implement-password-validation
.The text was updated successfully, but these errors were encountered: