Skip to content
Projects
Groups
Snippets
Help
Loading...
Help
Contribute to GitLab
Sign in
Toggle navigation
W
WordPress_SexHackMe_Plugin
Project
Project
Details
Activity
Cycle Analytics
Repository
Repository
Files
Commits
Branches
Tags
Contributors
Graph
Compare
Charts
Issues
0
Issues
0
List
Board
Labels
Milestones
Merge Requests
0
Merge Requests
0
CI / CD
CI / CD
Pipelines
Jobs
Schedules
Charts
Wiki
Wiki
Snippets
Snippets
Members
Members
Collapse sidebar
Close sidebar
Activity
Graph
Charts
Create a new issue
Jobs
Commits
Issue Boards
Open sidebar
SexHackMe
WordPress_SexHackMe_Plugin
Commits
facb628e
Commit
facb628e
authored
Jul 04, 2023
by
Franco (nextime) Lanza
Browse files
Options
Browse Files
Download
Email Patches
Plain Diff
Fix password reset
parent
295f0294
Changes
2
Hide whitespace changes
Inline
Side-by-side
Showing
2 changed files
with
4 additions
and
5 deletions
+4
-5
class-paid-member-subscriptions-integration.php
includes/class-paid-member-subscriptions-integration.php
+1
-2
functions-utils.php
includes/functions-utils.php
+3
-3
No files found.
includes/class-paid-member-subscriptions-integration.php
View file @
facb628e
...
@@ -167,8 +167,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
...
@@ -167,8 +167,6 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
else
else
$username_email
=
sanitize_text_field
(
$_POST
[
'pms_username_email'
]
);
$username_email
=
sanitize_text_field
(
$_POST
[
'pms_username_email'
]
);
if
(
empty
(
$username_email
)
)
if
(
empty
(
$username_email
)
)
pms_errors
()
->
add
(
'pms_username_email'
,
__
(
'Please enter a username or email address.'
,
'paid-member-subscriptions'
)
);
pms_errors
()
->
add
(
'pms_username_email'
,
__
(
'Please enter a username or email address.'
,
'paid-member-subscriptions'
)
);
else
{
else
{
...
@@ -189,6 +187,7 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
...
@@ -189,6 +187,7 @@ if(!class_exists('SexhackPmsPasswordDataLeak')) {
}
}
else
$error
=
true
;
else
$error
=
true
;
}
}
}
}
// Extra validation
// Extra validation
...
...
includes/functions-utils.php
View file @
facb628e
...
@@ -170,9 +170,9 @@ function send_changepwd_mail($user_login, $baseurl=false){
...
@@ -170,9 +170,9 @@ function send_changepwd_mail($user_login, $baseurl=false){
$key
=
pms_retrieve_activation_key
(
$user_login
);
$
gen
key
=
pms_retrieve_activation_key
(
$user_login
);
//$key = get_password_reset_key( $user_data
);
do_action
(
'retrieve_password_key'
,
$user_login
,
$genkey
);
do_action
(
'retrieve_password_key'
,
$user_login
,
$key
);
$key
=
get_password_reset_key
(
$user_data
);
//if ( empty( $wp_hasher ) ) {
//if ( empty( $wp_hasher ) ) {
// require_once ABSPATH . 'wp-includes/class-phpass.php';
// require_once ABSPATH . 'wp-includes/class-phpass.php';
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment