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

Issue #1: Add basic Backdrop compatibility. #2

Merged
merged 1 commit into from Jan 27, 2015
Jump to file or symbol
Failed to load files and symbols.
+2 −2
Diff settings

Always

Just for now

@@ -1,3 +1,3 @@
name = User cancel password confirm
description = Allows users to cancel their accounts with password confirmation rather than e-mail confirmation.
core = 7.x
backdrop = 1.x
@@ -41,7 +41,7 @@ function user_cancel_password_confirm_validate($element, &$form_state, $complete
// Check the current user's password (not the account being deleted). This
// allows administrators to delete other users' accounts without having to
// know the user's password.
require_once DRUPAL_ROOT . '/' . variable_get('password_inc', 'includes/password.inc');
require_once DRUPAL_ROOT . '/' . settings_get('password_inc', 'core/includes/password.inc');
if (!user_check_password($form_state['values']['current_pass'], $GLOBALS['user'])) {
form_error($element, t('Your current password is incorrect.'));
}
ProTip! Use n and p to navigate between commits in a pull request.