Go to main content

Textpattern CMS support forum

You are not logged in. Register | Login | Help

#1 2016-02-18 13:14:30

miles
Member
From: Plymouth
Registered: 2008-05-22
Posts: 78
Website

Register, admin approve, login?

Hi Textpros

I have been looking around for this solution and hopefully someone can help.

I need the user to register but not be sent a password. The admin must approve them first to login. Then the password will be sent to the user.

Is this possible with cbe_frontauth and em_self_register?

Self_Register seems to send the password automatically though.

Hope someone can help

Offline

#2 2016-02-18 20:15:52

bici
Member
From: vancouver
Registered: 2004-02-24
Posts: 2,152
Website Mastodon

Re: Register, admin approve, login?

miles wrote #297907:

Hi Textpros

I have been looking around for this solution and hopefully someone can help.

I need the user to register but not be sent a password. The admin must approve them first to login. Then the password will be sent to the user.

Is this possible with cbe_frontauth and em_self_register?

Self_Register seems to send the password automatically though.

Hope someone can help

is the solution to have the ADMIN create the login which then gets sent to the approved user an option? Or would this be too labour intensive.


…. texted postive

Offline

#3 2016-02-18 20:26:11

miles
Member
From: Plymouth
Registered: 2008-05-22
Posts: 78
Website

Re: Register, admin approve, login?

Yeah unfortunately it would.

Basically its for a city a centre where the shops sign up on the members area then they need to be approved by the admin for security

Offline

#4 2016-02-18 22:21:19

ruud
Developer Emeritus
From: a galaxy far far away
Registered: 2006-06-04
Posts: 5,068
Website

Re: Register, admin approve, login?

This may be easier to do in the upcoming 4.6 version.

@Bloke: can a not-activated user do a password reset request or does that require activation first?

Offline

#5 2016-02-19 10:29:54

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,059
Website GitHub

Re: Register, admin approve, login?

ruud wrote #297911:

can a not-activated user do a password reset request or does that require activation first?

Yes, you can do a reset without activation. They’re essentially the same action.

Except, umm (where’s the embarrassed emoticon?) the rate limiting I put in core breaks the reset functionality. I need to do the rate limiting in PHP not SQL to cater for those times when no previous reset request has been made. Schoolboy error *smacks hand* I’ll fix that today.

Another approach might be:

  • Capture the registrant’s email address in a sign-up form, but…
  • … override the destination email address with a hidden/secret field (somehow?) to divert it to an admin account instead.
  • Activation email thus gets sent to an administrator, along with the ultimately desired email address.
  • The administrator ‘approves’ the user by visiting the Admin->Users panel and changing the email address from the admin one to the one given by the customer at sign-up.
  • The administrator selects the ‘send activation request’ multi-edit option for the selected account.
  • The user gets an activation request to their email address and proceeds as usual to set up a password.

The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

#6 2016-02-19 10:45:45

colak
Admin
From: Cyprus
Registered: 2004-11-20
Posts: 9,337
Website GitHub Mastodon Twitter

Re: Register, admin approve, login?

Another way is to just use zcr to receive emails from potential users whom you then invite using the admin interface.


Yiannis
——————————
NeMe | hblack.art | EMAP | A Sea change | Toolkit of Care
I do my best editing after I click on the submit button.

Offline

#7 2016-02-19 10:48:26

Bloke
Developer
From: Leeds, UK
Registered: 2006-01-29
Posts: 12,059
Website GitHub

Re: Register, admin approve, login?

colak wrote #297917:

Another way is to just use zcr to receive emails from potential users whom you then invite using the admin interface.

This is a much cleaner solution!


The smd plugin menagerie — for when you need one more gribble of power from Textpattern. Bleeding-edge code available on GitHub.

Txp Builders – finely-crafted code, design and Txp

Offline

Board footer

Powered by FluxBB