Error: "Passwords cannot contain re-hashed personal information." #482
-
Not sure if this is a bug or my lack of understanding (since I am new to Shield). I am getting that error on submitting a new registration (custom controller) with the following information (field name >> value):
When I submit that it fails with the mentioned error. If I remove validation, it saves fine. Controller (work in progress, do it one step at a time to try and understand): public function register_insert()
{
if (auth()->loggedIn()) {
return redirect()->to(config('Auth')->registerRedirect());
}
$post = $this->request->getPost();
$post['phone_home'] = cleanPhone($post['phone_home']);
$users = model('Userp42Model');
// Validate here first, since some things,
// like the password, can only be validated properly here.
$rules = $this->getValidationRules();
if (! $this->validate($rules)) {
return redirect()->back()->withInput()->with('errors', $this->validator->getErrors());
}
$user = new User();
$user->fill($post);
$users->save($user);
// We need an ID to on the entity to save groups.
if ($user->id === null) {
$user->id = $users->getInsertID();
}
// Save the user's groups
$user->syncGroups(...$this->request->getPost('groups'));
auth()->logout($user->id);
return view('Public/registration_thankyou');
} What in that password is a rehash of personal information? |
Beta Was this translation helpful? Give feedback.
Replies: 5 comments 4 replies
-
A little tidbit of additional info. I tried the password "Thisissecret!" and it completed the registration successfully. |
Beta Was this translation helpful? Give feedback.
-
The error comes from NothingPersonalValidator. |
Beta Was this translation helpful? Give feedback.
-
I know where it is coming from, my question was more along the lines of "Why?". Why is that password of random letters/symbols failing with the input I showed. There is NO similarity of data. Seems like the first random password is way better than that second one that is just a couple of strung together words. |
Beta Was this translation helpful? Give feedback.
-
Are you using released version of Shield? |
Beta Was this translation helpful? Give feedback.
-
Forgive me for one last question, but I am new to composer... How do I change branches at this point? This line in the composer.json file?
|
Beta Was this translation helpful? Give feedback.
Are you using released version of Shield?
If so, it has many bugs. Please update to
develop
.