# Act\_as\_authenticated: remove login and use email

**URL:** <https://www.ruby-forum.com/t/act-as-authenticated-remove-login-and-use-email/113996>\
**Category:** Rails\
**Created:** [September 6, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/act-as-authenticated-remove-login-and-use-email/113996 "2007-09-06T23:26:23Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [September 6, 2007, 11:26pm UTC](https://www.ruby-forum.com/t/act-as-authenticated-remove-login-and-use-email/113996/1 "2007-09-06T23:26:23Z")

</div>

Hi all,

Does anyone if it’s simple to remove the login/username from  
act\_as\_authenticated and use someone’s email address for it? I usually  
find that easier to remember than an username.

I installed act\_as\_authenticated and had a quick look at the code and it  
looks fairly simple, but I would like to know if someone’s had any  
experience with it.

Or may there be a better login-generator-thingy around?

Thanks in advance!

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [September 7, 2007, 12:34am UTC](https://www.ruby-forum.com/t/act-as-authenticated-remove-login-and-use-email/113996/2 "2007-09-07T00:34:31Z")

</div>

> I installed act\_as\_authenticated and had a quick look at the code and it  
> looks fairly simple, but I would like to know if someone’s had any  
> experience with it.

I’ve done this. If I remember correctly, you can just change the calls  
to find\_by\_login to find\_by\_email. Not too much work involved at all.

HTH,  
Jord

---

<div class="post-metadata">

**Author:** ![leonb](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/22d042/32.png) [@leonb](https://www.ruby-forum.com/u/leonb)\
**Post date:** [September 7, 2007, 9:09am UTC](https://www.ruby-forum.com/t/act-as-authenticated-remove-login-and-use-email/113996/3 "2007-09-07T09:09:13Z")

</div>

Jordan E. wrote:

> > I installed act\_as\_authenticated and had a quick look at the code and it  
> > looks fairly simple, but I would like to know if someone’s had any  
> > experience with it.
> 
> I’ve done this. If I remember correctly, you can just change the calls  
> to find\_by\_login to find\_by\_email. Not too much work involved at all.
> 
> HTH,  
> Jord

Ah, nice. Gonna look at it tonight. Thanks.
