Yii Framework Forum: Change password in blog.db - Yii Framework Forum

Jump to content

Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

Change password in blog.db Rate Topic: -----

#1 User is offline   eam 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 26-March 10

Posted 29 March 2010 - 01:25 PM

I would like to change or add a new username and password for the blog.db (sqlite). I see where the initial database was created, the password and salt were added manually. I would like to change the password manually and have it work with the authentication so I need to know how to come up with the hash and salt field values for my user. Thanks
0

#2 User is offline   eam 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 11
  • Joined: 26-March 10

Posted 01 April 2010 - 03:28 PM

View Posteam, on 29 March 2010 - 01:25 PM, said:

I would like to change or add a new username and password for the blog.db (sqlite). I see where the initial database was created, the password and salt were added manually. I would like to change the password manually and have it work with the authentication so I need to know how to come up with the hash and salt field values for my user. Thanks


Never mind, I figured it out. If anyone is interested, let me know.
0

#3 User is offline   Michéal 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 4
  • Joined: 24-May 10

Posted 28 June 2011 - 08:40 PM

I would... thanks ;)
0

#4 User is offline   otter 

  • Newbie
  • Yii
  • Group: Members
  • Posts: 9
  • Joined: 11-July 12

Posted 12 July 2012 - 12:38 PM

I would like to know your solution as well.
0

#5 User is offline   sensorario 

  • Elite Member
  • Yii
  • Group: Moderators
  • Posts: 1,986
  • Joined: 07-September 10
  • Location:Cesena (Italy)

Posted 02 March 2013 - 12:48 PM

    <?php $user = new User(); ?>
    <?php echo crypt('yiinotes', $user->hashPassword('yiinotes')); ?>

0

Share this topic:


Page 1 of 1
  • You cannot start a new topic
  • You cannot reply to this topic

1 User(s) are reading this topic
0 members, 1 guests, 0 anonymous users