Skip to content
Snippets Groups Projects
Commit 4cf9b3bd authored by Peter Rotich's avatar Peter Rotich
Browse files

Require password encryption.

parent 3b7bb04b
No related branches found
No related tags found
No related merge requests found
......@@ -245,6 +245,11 @@ class Email {
if(!$id && !$vars['passwd'])
$errors['passwd']='Password required';
elseif($vars['passwd']
&& $vars['userid']
&& !Crypto::encrypt($vars['passwd'], SECRET_SALT, $vars['userid'])
)
$errors['passwd'] = 'Unable to encrypt password - get technical support';
}
if($vars['mail_active']) {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment