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

Merge pull request #680 from protich/feature/require-encryption

Require encryption.
parents 277aaddb 4cf9b3bd
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