Posted by level09 on November 3, 2009 at 12:43pm
5 followers
Jump to:
| Project: | Account menu |
| Version: | 6.x-1.9 |
| Component: | Code |
| Category: | task |
| Priority: | normal |
| Assigned: | Unassigned |
| Status: | postponed (maintainer needs more info) |
Issue Summary
just a quick fix , "Create account" should be taken off when the account creation is disabled in the user settings.
Comments
#1
>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?
#2
Any luck finding this? I've searched for a while now for this with no luck.
#3
I still don't know how to find out this setting...
#4
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.
#5
So there is no value for "account creation disable"? Then how do we get to set "No account creation?"
#6
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?
#7
Any update to this issue?
From Mt. Emei, China