just a quick fix , "Create account" should be taken off when the account creation is disabled in the user settings.

Comments

mattyoung’s picture

>when the account creation is disabled in the user settings.

Is there some variable_get() or something else to find out the status of this?

Anonymous’s picture

Any luck finding this? I've searched for a while now for this with no luck.

mattyoung’s picture

Status: Active » Postponed (maintainer needs more info)

I still don't know how to find out this setting...

Aveu’s picture

Matt,

I am looking into this for my needs too but the answer to your puzzle is...

The setting you are looking for can be accessed using the following function:

variable_get('user_register', 0)

which will return a value of 0-2 as follows:
// 0 is for Only the Site-Admin can create new accounts
// 1 is for Anyone can create new accounts without approval
// 2 is for Anyone can create new accounts but approval is required

If I can't get to fixing the issue I hope this information helps.

PS: To give credit where due... this info was provided in an IRC chat with users chx, lyricnz, dereine, and OSInet.

mattyoung’s picture

So there is no value for "account creation disable"? Then how do we get to set "No account creation?"

verta’s picture

The user/login page respects this setting, where ever it may be, and does not display the Create Account parts of the form when admin,users,user settings has Public Registrations set to the first option, " Only site administrators can create new user accounts."

I support this request, it makes sense to not show on the menu option that an unregistered user might create an account when the site will not permit this.

However, I think it may be a core issue. Doesn't adding the user/login link to any menu adds the "Log in/Create an account" option to the menu for unauthenticated users?

mattyoung’s picture

Version: 6.x-1.6 » 6.x-1.9

Any update to this issue?

From Mt. Emei, China

john franklin’s picture

Issue summary: View changes
Status: Postponed (maintainer needs more info) » Fixed

Changed the wording of the login link to better reflect the page it references. The create account and password reset pages have separate paths.

  • Commit e1afd94 on 6.x-1.x by John Franklin:
    Issue #621942 by John Franklin: Reword the login/create account link to...
  • Commit 85de24e on 7.x-1.x by John Franklin:
    Issue #621942 by John Franklin: Reword the login/create account link to...

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.