Login     Sign up
Sign up without password...
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

I'm not sure if this is new to anybody... but I've discovered that it's possible to sign up for a new account without entering a password!

Has anybody else encountered this problem?

Terence Watts

175 months ago
Mohammad Emran (@monemran)
Join date: Sep 15th 2010
Community posts: 28
View Profile
Send Message

yes...because Jcow did not check password is empty or not..it is a bug..

You can overcome this by this code. go to memeber.php and locate singup() function.

[code]
if (!$_POST['email'] || !$_POST['fullname'] || !$_POST['username']) {
$errors[] = t('Please fill in all the required blanks');
}
[/code]
should be change to
[code]
if (!$_POST['email'] || !$_POST['fullname'] || !$_POST['username'] || !$_POST['password']) {
$errors[] = t('Please fill in all the required blanks');
}
[/code]

175 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Thank you very much - I'll get on to that later today!

175 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

I've searched everywhere for the file 'member.php' with no luck at all... which directory would I expect to find it in?

175 months ago
Mohammad Emran (@monemran)
Join date: Sep 15th 2010
Community posts: 28
View Profile
Send Message

You can find that on

modules/member/member.php

175 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

Doh! Thank you very much :-)

175 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

DISASTER! The sign upn page just disappears now - I reinstated the code but it's still not working... and I have no idea how to sort that out.

Help!!!

Terence

175 months ago
Terence Watts (@terencewatts)
Join date: Sep 15th 2010
Community posts: 75
View Profile
Send Message

OK - panic over... problem sorted.

175 months ago
Alex Neave (@alexn)
Join date: Dec 17th 2010
Community posts: 10
View Profile
Send Message

[quote=monemran]yes...because Jcow did not check password is empty or not..it is a bug..

You can overcome this by this code. go to memeber.php and locate singup() function.

[code]
if (!$_POST['email'] || !$_POST['fullname'] || !$_POST['username']) {
$errors[] = t('Please fill in all the required blanks');
}
[/code]
should be change to
[code]
if (!$_POST['email'] || !$_POST['fullname'] || !$_POST['username'] || !$_POST['password']) {
$errors[] = t('Please fill in all the required blanks');
}
[/code][/quote]

This omission is still present in the version 4.2.1, but I see there has been a modification of the user files. The file I modified to correct the issue was:

jcow/includes/libs/member.module.php Around line 610

[code] if (!$_POST['email'] || !$_POST['fullname'] || !$_POST['username'] || !$_POST['password']) {

            $errors[] = t('Please fill in all the required blanks');[/code]

Same fix as monemram explained in original post.

172 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

LOL panic button :)

172 months ago
AL (@switch48)
Join date: Sep 1st 2010
Community posts: 450
View Profile
Send Message

LOL panic button :)

172 months ago