OJS OCS OMP OHS

You are viewing the PKP Support Forum | PKP Home Wiki



Email as Username

OJS development discussion, enhancement requests, third-party patches and plug-ins.

Moderators: jmacgreg, btbell, michael, bdgregg, barbarah, asmecher

Forum rules
Developer Resources:

Documentation: The OJS Technical Reference and the OJS API Reference are both available from the OJS Documentation page.

Git: You can access our public Git Repository here. Comprehensive Git usage instructions are available on the wiki.

Bugzilla: You can access our Bugzilla report tracker here.

Search: You can use our Google Custom Search to search across our main website, the support forum, and Bugzilla.

Questions and discussion are welcome, but if you have a workflow or usability question you should probably post to the OJS Editorial Support and Discussion subforum; if you have a technical support question, try the OJS Technical Support subforum.

Email as Username

Postby shimrah » Thu Jan 24, 2008 1:49 pm

Do you plan to add the option to use email as user name? If so, and the "use email as username" checkbox is checked in OJS setup, then it should hide the email field on the registration form and check the user name field for email address compliance + send a confirmation email to the entered address to confirm password.

We've found that this works (manually) if we replace the username in the database with an email, which leaves us with two questions:

1. OJS checks the username, on registration, for special characters (disallowing @). Is this the only place it's checked?

2. Once we replace the username, we have to reset the password. I assume that the password-encryption algorhithm, then, replies on the username. Is that algorithm posted somewhere in the forum?

3. We changed the database field for username to 90 characters, to fit all email addresses. Aside from this, is there anywhere else that this value might be truncated that you can think of offhand?

Thanks for your help,

Shimrah
shimrah
 
Posts: 45
Joined: Thu Apr 05, 2007 10:01 am

Re: Email as Username

Postby asmecher » Tue Jan 29, 2008 11:37 am

Hi Shimrah,

This is the first request we've had for this feature, but if we get a lot of requests for it we might merge it into the core. In the meantime, I'd suggest maintaining a modification like the one you're working on.

Usernames are validated in a few places:
  • classes/install/form/InstallForm.inc.php (just for the installation user)
  • classes/manager/form/UserManagementForm.inc.php
  • classes/sectionEditor/form/CreateReviewerForm.inc.php
  • classes/user/form/RegistrationForm.inc.php
As for passwords, these are generated by hashing a combination of the username and password. See http://pkp.sfu.ca/support/forum/viewtopic.php?f=8&t=1210 for a note on how these are generated.

Regards,
Alec Smecher
Public Knowledge Project Team
asmecher
 
Posts: 9071
Joined: Wed Aug 10, 2005 12:56 pm


Return to OJS Development

Who is online

Users browsing this forum: Baidu [Spider] and 1 guest