# User management by admin

**URL:** <https://www.ruby-forum.com/t/user-management-by-admin/181035>\
**Category:** Rails\
**Created:** [January 4, 2010, 9:15am UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035 "2010-01-04T09:15:48Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [January 4, 2010, 9:15am UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035/1 "2010-01-04T09:15:48Z")

</div>

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

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [January 4, 2010, 2:03pm UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035/2 "2010-01-04T14:03:37Z")

</div>

Hi,

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

[http://github.com/matthooks/authlogic-activation-tutorial](http://github.com/matthooks/authlogic-activation-tutorial)

* * *

I recently started using authlogic. Before I used  
restful-authentication:

> **[GitHub - technoweenie/restful-authentication: inactive project](https://github.com/technoweenie/restful-authentication)**
>
> inactive project. Contribute to technoweenie/restful-authentication development by creating an account on GitHub.

Here’s a tutorial for that one also:  
[http://railsforum.com/viewtopic.php?pid=74245#p74245](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.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [January 4, 2010, 6:31pm UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035/3 "2010-01-04T18:31:47Z")

</div>

comopasta Gr wrote:  
[…]

> I recently started using authlogic. Before I used  
> restful-authentication:  
> [GitHub - technoweenie/restful-authentication: inactive project](http://github.com/technoweenie/restful-authentication)
> 
> Here’s a tutorial for that one also:  
> [http://railsforum.com/viewtopic.php?pid=74245#p74245](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. 🙂

> Hopefully this info helps.
> 
> Cheers.

Best,  
–Â  
Marnen Laibow-Koser  
[http://www.marnen.org](http://www.marnen.org)  
removed\_email\_address@domain.invalid

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [January 5, 2010, 12:18am UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035/4 "2010-01-05T00:18:30Z")

</div>

> > 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.

---

<div class="post-metadata">

**Author:** ![tom-mac](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/t/bc8723/32.png) [@tom-mac](https://www.ruby-forum.com/u/tom-mac)\
**Post date:** [January 5, 2010, 2:28am UTC](https://www.ruby-forum.com/t/user-management-by-admin/181035/5 "2010-01-05T02:28:45Z")

</div>

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](http://www.marnen.org)  
removed\_email\_address@domain.invalid
