nickbooties / passwordpolicy

GNU Affero General Public License v3.0
2 stars 4 forks source link

Apply password policy on user creation #17

Closed michag86 closed 6 years ago

michag86 commented 8 years ago

If a user is created, the password policy is not applied. It is required to create a hook on "preCreateUser".

I will work on this...

quenenni commented 8 years ago

Hello michag86,

That's exactly the plugin I was looking for.. Thanks a lot. I tested it on a v9.02 and it works well.

Any news on this feature?

Cheers

michag86 commented 8 years ago

@quenenni I've created a pull request #18 for this feature. Ask @nickbooties for merging this.

quenenni commented 7 years ago

I applied your changes directly into my code to test it.

It works. I can't create a user from the Users page with a weak password. The only problem is that the error msg that appears on top of the page is wrong:

Erreur a la création d'un utilisateur : {message}

The first part is correct, but it seems the part about the reason of the failure ({message}) is not correctly managed.

Ps: I tested it on an owncloud v9.1