removed password fields

17 years 8 months ago #19227 by masyomo
removed password fields was created by masyomo
I removed password and username fields because we use smf bridge and it confuses users who think they can change those things in their profile when they actually have to use the smf profile.

In cb.core.php I removed the following lines:
[code:1]
$return .= " <tr>\n";

$return .= " <td class=\"titleCell\">"._UE_UNAME.":</td>\n";

$return .= " <td class=\"fieldCell\">";

IF(($ueConfig["usernameedit"]==1) or ($user->username==""«») or ($ui == 2)) {

$return .= "<input class=\"inputbox\" type=\"text\" size=\"40\" name=\"username\" value=\"".htmlspecialchars($user->username)."\" />";

$return .= getFieldIcons($ui, true,($ueConfig["name_format"]!=1),sprintf( _VALID_AZ09, _UE_UNAME, 2 ) , _UE_UNAME.":"«»);

} else {

$return .= $user->username;

$return .= "<input class=\"inputbox\" type=\"hidden\" name=\"username\" value=\"".htmlspecialchars($user->username)."\" />";

}

$return .= "\n</td>\n</tr>\n";
[/code:1]
and also


[code:1]

$return .= "<tr>\n";

$return .= " <td class=\"titleCell\">"._UE_PASS.":</td>\n";

$return .= " <td class=\"fieldCell\"><input class=\"inputbox\" type=\"password\" size=\"40\" name=\"password\" value=\"\" autocomplete=\"off\" />";

$return .= getFieldIcons($ui, false, false, sprintf( _VALID_AZ09, _UE_PASS, 6 ), _UE_PASS.":"«»);

$return .= "</td>\n</tr>\n";

$return .= "<tr>\n";

$return .= " <td class=\"titleCell\">"._UE_VPASS.":</td>\n";

$return .= " <td class=\"fieldCell\"><input class=\"inputbox\" type=\"password\" size=\"40\" name=\"verifyPass\" autocomplete=\"off\" />";

$return .= getFieldIcons($ui, false, false);

$return .= "</td>\n</tr>\n";
[/code:1]

Everything works fine except that I noticed the save button doesn't work in the backend when trying to modify user profiles. Does anyone know what I could do to get the save button working (besides restoring the original file :P )

Please Log in to join the conversation.

17 years 7 months ago #19627 by masyomo
Replied by masyomo on topic Re:removed password fields
no suggestions :dry:

Its not critical but if anyone has any ideas it would be a nice fix as I'm sure other people using smf would also like to get rid of the password options

Please Log in to join the conversation.

17 years 7 months ago #19639 by pcjunkie
Replied by pcjunkie on topic Re:removed password fields
I used the data base to remove the link...

Not sure how I did it though..lol
It works fine anyway...

Please Log in to join the conversation.

17 years 7 months ago #19692 by masyomo
Replied by masyomo on topic Re:removed password fields
lol - I wouldn't have a clue how to go about that!

I see www.elearningforce.dk have been saying they're doing a bridge for joomla/cb/smf so prob may as well wait on that anyway assuming its going to be more comprehensive than the existing ones. They've had it on their list for a long time though so .................

Please Log in to join the conversation.

Moderators: beatnantkrileon
Time to create page: 0.313 seconds

Facebook Twitter LinkedIn