# Authlogic and persistence token

**URL:** <https://www.ruby-forum.com/t/authlogic-and-persistence-token/190854>\
**Category:** Rails\
**Created:** [June 29, 2010, 10:31am UTC](https://www.ruby-forum.com/t/authlogic-and-persistence-token/190854 "2010-06-29T10:31:16Z")\
**Posts on this page:** 1\
**Page:** 1

<div class="post-metadata">

**Author:** ![lesanglier](https://www.ruby-forum.com/letter_avatar_proxy/v4/letter/l/ac8455/32.png) [@lesanglier](https://www.ruby-forum.com/u/lesanglier)\
**Post date:** [June 29, 2010, 10:31am UTC](https://www.ruby-forum.com/t/authlogic-and-persistence-token/190854/1 "2010-06-29T10:31:16Z")

</div>

Hello,

I would to know if if does it possible to have something like this :

acts\_as\_authentic do |c|  
c.login\_field = :user\_name  
c.crypted\_password\_field = :user\_passwd  
c.persistence\_token = :pertok  
end

Using the “pertok” field instead of the “persistence\_token” field ?  
Or say to Ror to use the “user\_passwd” as “persistence\_token” field.

How to generate a persistence token ?

Thanks in advance ! 🙂
