[RC1] Login Name

A place for MOD Authors to post and receive feedback on MODs still in development. No MODs within this forum should be used within a live environment! No new topics are allowed in this forum.
Forum rules
READ: phpBB.com Board-Wide Rules and Regulations

IMPORTANT: MOD Development Forum rules

On February 1, 2009 this forum will be set to read only as part of retiring of phpBB2.
User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

[RC1] Login Name

Post by marcus.smith » Thu Feb 15, 2007 7:16 am

MOD Title: Login Name
MOD Description: Users are required to register a "Login Name" to use when logging in, for added account security.
MOD Version: RC1 (using 2.0.22)
MOD Requirements: A phpBB2 :)
MOD Download: Direct Download
Known Bugs: None

This simple mod stems from e107, a PHP based CMS which I once had a play about with. One of the abilities coded into e107 is a "Login Name" - it is only used for logging into the site, and is never displayed publically. This remains with "Username" for handling posts/messages - the two should not be confused.

It adds an extra element of security in that "I Forgot my Password" will then only allow the "Login Name" making it difficult for accounts to be hacked or for the the password reset option to exploited by spamming members and locking them out of their accounts. Speaking from experience... :wink:

I only started the mod last night, but have completed the following:
• Registration requires a "Login Name" in addition to "Username".
Send Password Reset requires "Login Name" not "Username".
• There is a new "I need a Login Name" option next to "I Forgot my Password" on the Login screen. This script confirms the user by their Username, E-Mail Address AND Password to prevent any mistakes before storing their "Login Name".

Notes:
• Users "Login Name" is not available for Admins to see (like passwords).
• "Login Name" is never sent in any e-mails, not even activation e-mails.
• "Login Name" cannot be seen or changed in the User CP or ACP.
• "Login Name" is required when the Admin logs into the ACP, also.
• Includes an option for Admin to "clear" a members "Login Name" in User Management if they forget it, they will have to create a new one.

Cheerz! :)
Last edited by marcus.smith on Sat Oct 06, 2007 6:06 pm, edited 9 times in total.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

Mårten Berglund
Registered User
Posts: 17
Joined: Wed Feb 14, 2007 12:26 am

Re: [Dev] Private Login Name

Post by Mårten Berglund » Thu Feb 15, 2007 1:17 pm

Sounds reasonable. Keep on the good work, so there'll be a mod to download soon. :-)

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Post by marcus.smith » Fri Feb 16, 2007 4:57 am

Thanks for your interest.

• I have added an Admin option to clear a users Login Name, so that they must setup a new one.

• During registration/Login Name setup the script now compares the Login Name with the Username without being case sensitive. A user cannot have matching words - eg: 'John' and 'john' won't be allowed.

I'm still debating whether to store Login Names hashed with the md5 function - will think it over and decide before I release anything.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

[RC1]

Post by marcus.smith » Fri Feb 16, 2007 10:47 am

Raised to RC1

• No changes required as no bugs identified
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Login Name

Post by marcus.smith » Sun Apr 01, 2007 3:11 am

Raised mod to Final status despite no code changes and very little interest in this mod in 6 weeks...

Will submit to ModDB when one is available.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

found it
Registered User
Posts: 215
Joined: Mon Oct 25, 2004 8:51 am
Contact:

Re: [RC1] Login Name

Post by found it » Sun Apr 01, 2007 5:00 pm

Great addition in my oppinion I will download and test this one this week....

Nice one again Marcus...

Keep up the good work... :D :D

Petufo
Registered User
Posts: 8
Joined: Sun Aug 26, 2007 5:02 pm

Re: [RC1] Login Name

Post by Petufo » Tue Aug 28, 2007 2:02 pm

Hi, I have a little problem with that mod. :(
I can't see "Login name" (= $lang['Loginname'] in lang_main.php) text in login.php

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Re: [RC1] Login Name

Post by marcus.smith » Tue Aug 28, 2007 4:26 pm

Try this:

OPEN login.php

Code: Select all

#
#-----[ FIND ]------------------------------------------
#
		$template->assign_vars(array(
			'USERNAME' => $username,
#
#-----[ AFTER, ADD ]------------------------------------
#
			'LOGINNAME' => $loginname,
			'L_LOGINNAME' => $lang['Loginname'],
Let me know if it works.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

Petufo
Registered User
Posts: 8
Joined: Sun Aug 26, 2007 5:02 pm

Re: [RC1] Login Name

Post by Petufo » Wed Aug 29, 2007 11:27 am

Now it's OK ;)

But you forgot to change quick login (or i missed it in installation)... i changed sometnig in index_body.tpl (i think it was username; as in login page) and now i can login there with login name, too. But again the text "Login name" is not there :)


EDIT:
Is that right?
SCREEN
(there is "Login name" text in login name text box, user must delete that text for writing his own login name)

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Re: [RC1] Login Name

Post by marcus.smith » Wed Aug 29, 2007 3:59 pm

Can't see the link.. :?
(there is "Login name" text in login name text box, user must delete that text for writing his own login name)
Doesn't sound right.. :(
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

Petufo
Registered User
Posts: 8
Joined: Sun Aug 26, 2007 5:02 pm

Re: [RC1] Login Name

Post by Petufo » Fri Aug 31, 2007 2:14 pm

Hmmm... DivShare lags.

What about imageshack?
Image
(I'm using my own translation ... Přihlašovací jméno is '$lang['Loginname']' in lang_main ;) )

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Re: [RC1] Login Name

Post by marcus.smith » Fri Aug 31, 2007 4:23 pm

That could only happen if you had:

Code: Select all

<input type="text" class="post" name="loginname" size="25" maxlength="40" value="{L_LOGINNAME}" />
instead of:

Code: Select all

 <input type="text" class="post" name="loginname" size="25" maxlength="40" value="{LOGINNAME}" />
in login_body.tpl.
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

Petufo
Registered User
Posts: 8
Joined: Sun Aug 26, 2007 5:02 pm

Re: [RC1] Login Name

Post by Petufo » Fri Aug 31, 2007 4:39 pm

Thanks. Maybe my mistake ;) Now it's completely OK.

Petufo
Registered User
Posts: 8
Joined: Sun Aug 26, 2007 5:02 pm

Re: [RC1] Login Name

Post by Petufo » Wed Sep 12, 2007 7:07 pm

Hi, it's me again.
Is able add Login Name to user "welcome" email (together with password and username)? Because a lot of my users were wrong in login and they forgot their login name :shock: :lol: :| :x

EDIT: Ech, it's OK, i made it... :shock:

User avatar
marcus.smith
Registered User
Posts: 916
Joined: Sun Oct 10, 2004 9:58 pm

Re: [RC1] Login Name

Post by marcus.smith » Wed Sep 12, 2007 7:46 pm

Petufo wrote:Hi, it's me again.
Is able add Login Name to user "welcome" email (together with password and username)? Because a lot of my users were wrong in login and they forgot their login name :shock: :lol: :| :x

EDIT: Ech, it's OK, i made it... :shock:
Well, the whole point in the mod is to have the members choose a secret Login name they will remember. Like a PIN for your bank card - you set it and don't forget it, nor do you leave it written down for people to see!

If you insist on letting them know this though, despite the irony of it, heres how:

OPEN: includes/usercp_register.php
FIND:

Code: Select all

			else
			{
				$emailer->assign_vars(array(
					'SITENAME' => $board_config['sitename'],
					'WELCOME_MSG' => sprintf($lang['Welcome_subject'], $board_config['sitename']),
					'USERNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $username), 0, 25)),
AFTER, ADD:

Code: Select all

					'LOGINNAME' => preg_replace($unhtml_specialchars_match, $unhtml_specialchars_replace, substr(str_replace("\'", "'", $loginname), 0, 25)),
OPEN: language/lang_*/user_welcome.tpl
FIND:

Code: Select all

Username: {USERNAME}
AFTER, ADD:

Code: Select all

Login Name: {LOGINNAME}
..: Ma®©uS™ :..
Image Mods: Contact Form | Hex BBCode | Login Name

Post Reply

Return to “[2.0.x] MODs in Development”

Who is online

Users browsing this forum: No registered users and 15 guests