Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Added tooltip to changepassword #20

Merged
merged 1 commit into from
Mar 19, 2016

Conversation

micke2k
Copy link
Contributor

@micke2k micke2k commented Mar 19, 2016

Fixed "ok" message when changing passwords.

Somethings that still needs to be looked at:

  1. can i read the friendly_name of the array with read_config_option? I want to read it from the array instead of typing it:

           `     "Require Mix Case: " .read_config_option('secpass_reqmixcase') . "<br>" .`
    
  2. Because of this function it still forces you to use a new password even to secpass_history default is set to 0. Change secpass_history default to 1 and remove it?

if ($user['password'] == md5(get_nfilter_request_var('password'))) { $bad_password = true; $errorMessage = "<span color='#FF0000'>Your new password can not be the same as the old password. Please try again.</span>"; }

  1. I had to add font-awesome since it wasn't referenced anywhere in themes. Better way to do it?

print "\t<link href='" . $config['url_path'] . "include/" . "/fa/css/font-awesome.css' type='text/css' rel='stylesheet'>\n";

Any input is welcome!

passwordchanges2

Fixed "ok" message when changing passwords.

Somethings that still needs to be looked at

1. can i read the friendly_name of the array with read_config_option? I want to read it from the array instead of typing it:

                    "Require Mix Case: " .read_config_option('secpass_reqmixcase') . "<br>" .

2. Because this function it still forces you to use a new password even to secpass_history default is set to 0. Change secpass_history default to 1 and remove it?

    if ($user['password'] == md5(get_nfilter_request_var('password'))) {
        $bad_password = true;
        $errorMessage = "<span color='#FF0000'>Your new password can not be the same as the old password.  Please try again.</span>";
    }

3. I had to add font-awesome since it wasn't referenced anywhere in themes. Better way to do it?

Any input is welcome!
@cigamit
Copy link
Member

cigamit commented Mar 19, 2016

You can read it from the array itself by indexing into the global array. However, lets merge this as is. It's still broken as strong password support did not get comprehended. If you look at the change password function, it will hash the password per the php functions if your php version is higher than 5.5. So, the comparison function will not work with those higher php version.

cigamit added a commit that referenced this pull request Mar 19, 2016
Still some work to do in order to support strong passwords though.
@cigamit cigamit merged commit 1934d68 into Cacti:develop Mar 19, 2016
@github-actions github-actions bot locked as resolved and limited conversation to collaborators Jun 30, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

None yet

2 participants