Roundcube Community Forum

 

Auto User Email Creation

Started by tuney, July 28, 2006, 09:12:11 AM

Previous topic - Next topic

nipun_jain

Well, let me help you out there. Creating an account at admin side is fine, but not allowing users to choose their own passwords? And not allowing them to change it afterwards? I doubt anyone would want that.

What one would want is, an invite system. That is, signup is not open to everyone, though users can get an account via invites. The admin can generate an invite, and only by using that invite can the user signup for an email account. This way, they can choose their own password, and the admin does not know their login details.

This is exaclty what I have coded. Since it was not roundcube related (but rather cpanel based), I did not release my code here. What my code does is, generate a random invite, send the invite to the users alternate email, the user signs up for the account, the admin gets notified and finally the invite gets expired.

Do you think you can borrow my code, add it to yours, also borrow that password change code so that the end result is this:

1. Admin can generate invites and send the email containing the invitation link to the users' alternate email id. (This is already done by my code).

2. Integrate this admin panel in the roundcube interface, only for users assigned admin status (done by your code).

3. Create a new level of aministration, that is mod like feature, that allows users access to an Invite Panel, which only allows creation of new invites (alloted to that user by superadmin). This can be thought of like what gmail does, allot users invites to invite new users. (New code, new feature).

4. Users have an additional field in settings panel to change their password (already coded by someone, as mentioned by you).

Now how does that sound?
 

matt2minger

Hi,

i have installed the rc admin v2.1 beta 1 and when i try to install it i press install and it says can't open file, i wonder if you know what may be causing this.

Thanks
Matt

123123

THANKS FOR GREAT JOB, But i can't install too.

I simply suggest to releas version with integrated auto creation user and password changing system. it would fit all OUR NEEDS. thanks in advance and waiting for new releases ;)

nefarios

@ tuney,


  regarding on the platforms what we're using as you've mention aside from CPanel, by the way i am using Webmin and if this can be also work with the code you made it will be a pleasure. and i'm willing to test it and try for bugs . in this way as you've said we can get other platforms get working so i hope using Webmin is a start after CPanel..


thanks for the reply.. and great work

igeoffi

Quote from: nipun_jain Well, let me help you out there. Creating an account at admin side is fine, but not allowing users to choose their own passwords? And not allowing them to change it afterwards? I doubt anyone would want that.
for change pass
add a column to user table called pass and another called mpass
add a new tab for pass
mpass will be the pass set in cPanel
pass will be the pass set by the user

Kieran

Surely you would want the CPanel password for the account it's self to be changed so that were you to use several methods of access to mail (such as IMAP and POP) this would still function with the users new password?

nipun_jain

I agree with keiran, rc should not be the only method through which users can access their mail, they should be allowed to use clients such as evolution, thunderbird etc.

tuney

I agree with the method of password change. It should be done by utilising CPanel (or other) and be changed on the mail server so that any client can be used with the same password.

Thanks all for the suggestions of other platforms other than CPanel.

nipun_jain, I like your idea, what does everyone else think ?

Anyone who gets a 'can't open file' error, first make sure that emsu/includes/db.inc.php is writtable by the server.



nipun_jain

Am glad you like the idea, if you want to work on it, let me know, I ll forward you a copy of my code after making some changes (currently my settings are hard coded into it). If not, I ll start working on it myself, after my exams get over in a week. I am sure I we can get it to work, and this can benifit all the rc users who use cpanel (maybe others too, as there is only 1 line of code which actually creates the email account), and this is the way the account creation should be handled, coz this way, even if we cannot get password change to work, the users get to set their own password (in addition to their choice of email login id) which is unknown to the administrator. 8)

tuney

I agree that users should be able to pick their own passwords and usernames if these accounts are created through admin panel. Just as they can now if they use the 'signup' link already in place.
Personally speaking, I would also like to keep the 'add account' system that is already in place in the admin panel as this makes it easy for admin to add any 'admin type' accounts, such as 'postmaster', 'info' etc.

It really just depends on what people want.
If you want anyone to be able to create an account with their own username and password then the system in already in place works fine.
An easy fix would be to add an extra link to the admin panel as an 'Invite User to Signup' which will send them a link to the signup page already in place.

However, if signup needs to be limited to only people who are invited then it sounds like the system that you have in place would be better.

matt2minger

Hi,

great script and now when i install it it sayd "Invalid default value for 'activated'" i am not sure what this means?

Cheers Matt

tuney

Default value for activated should be '1'.

I will check the install code as soon as can to see why you are getting this error.

Just to let everyone know, I am still developing and supporting this addon.
However, for the time being at least, things may not be done as fast as I would have ideally liked. This is due to some sudden family health problems that I hope and pray will be resolved soon. Some things come above all others.
In the meantime, please be patient, I am continuing work on this and will do what work I can when I can.

Many thanks.

123123

tuney - great work. could you make a realese with all these plugins together (password change, user creation). i mean, that after you instal everything, you have all these features together at once.

tuney

The plan is that the next release will have all the features bundled together. For some of these there will be an option during install whether to install a particular feature or not.

simplistsims

I hope your family gets better soon! :( :(
Duca Duca Duca Duca - Dr. Evil *Say it fast*