auth: remove needless logging during creating a new user
parent
bfd49023a1
commit
0b4749ea65
|
@ -91,8 +91,6 @@ func (as *authStore) Recover(be backend.Backend) {
|
||||||
}
|
}
|
||||||
|
|
||||||
func (as *authStore) UserAdd(r *pb.AuthUserAddRequest) (*pb.AuthUserAddResponse, error) {
|
func (as *authStore) UserAdd(r *pb.AuthUserAddRequest) (*pb.AuthUserAddResponse, error) {
|
||||||
plog.Noticef("adding a new user: %s", r.Name)
|
|
||||||
|
|
||||||
hashed, err := bcrypt.GenerateFromPassword([]byte(r.Password), bcrypt.DefaultCost)
|
hashed, err := bcrypt.GenerateFromPassword([]byte(r.Password), bcrypt.DefaultCost)
|
||||||
if err != nil {
|
if err != nil {
|
||||||
plog.Errorf("failed to hash password: %s", err)
|
plog.Errorf("failed to hash password: %s", err)
|
||||||
|
|
Loading…
Reference in New Issue