|
@@ -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)
|