User management by admin

Hi
My requirement is upon sign up a new user is created with the given
emailid etc and the admin user get an email about this request.When he
approves the request an email is sent to this user and now the user can
login to the application…How can I do this? Can I do this with
authlogic?

Thanks in advance

Hi,

Yes you can do that with authlogic. Take a look at the next tutorial.

http://github.com/matthooks/authlogic-activation-tutorial


I recently started using authlogic. Before I used
restful-authentication:
http://github.com/technoweenie/restful-authentication

Here’s a tutorial for that one also:
http://railsforum.com/viewtopic.php?pid=74245#p74245


I’ve managed to get authlogic working fine with activations and all that
stuff. For me restful-authentication setup was very easy, it is claimed
that authlogic is more flexible and simple, however in my opinion it
also requires you to learn more how it work and what it offers. To me
starting to use restful-authentication was somehow simpler.

Hopefully this info helps.

Cheers.

comopasta Gr wrote:
[…]

I recently started using authlogic. Before I used
restful-authentication:
http://github.com/technoweenie/restful-authentication

Here’s a tutorial for that one also:
http://railsforum.com/viewtopic.php?pid=74245#p74245


I’ve managed to get authlogic working fine with activations and all that
stuff. For me restful-authentication setup was very easy, it is claimed
that authlogic is more flexible and simple, however in my opinion it
also requires you to learn more how it work and what it offers. To me
starting to use restful-authentication was somehow simpler.

Yes, restful_authentication is easier to set up and learn to use than
Authlogic. However, that ease of setup comes at a price: restful_auth
fills your user model with unmaintainable generated code. This makes it
rather a nightmare to upgrade restful_auth or switch away from it. I’ll
never subject myself to that again. :slight_smile:

Hopefully this info helps.

Cheers.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]

restful_auth fills your user model with unmaintainable generated code

Hi Marnen,

Yeah I do agree with you. Maybe Tom M. wants to start with that one to
see the basic steps required (due to simplicity) and then move to
authlogic.

But you are right Marmen, restful_auth is full of “unknown” code. I
added some extra functionality and I wouldn’t like to go back and add it
also to a newer version of it…

Cheers.

comopasta Gr wrote:

restful_auth fills your user model with unmaintainable generated code

Hi Marnen,

Yeah I do agree with you. Maybe Tom M. wants to start with that one to
see the basic steps required (due to simplicity) and then move to
authlogic.

No! That would require ripping out all the restful_auth crap in your
User model. I’ve done that once, and I never want to do it again.

But you are right Marmen, restful_auth is full of “unknown” code. I
added some extra functionality and I wouldn’t like to go back and add it
also to a newer version of it…

Exactly.

Cheers.

Best,
–Â
Marnen Laibow-Koser
http://www.marnen.org
[email protected]