hash - Need to create a new admin login for codeigniter through phpmyadmin -
i new codeigniter , have copied on website admin users not have login details for. want create new admin through phpmyadmin can login backend of website.
i have inserted new admin name , tried both a) typing in password , using md5 hash dropdown , b) using third party md5 hash , copying field. once saved admin login doesn't work.
the other thing can see different ip address field appears encrypted differently hash 7 characters long, i'm not sure if should affect or encryption method might be.
any appreciated. thanks.
if have website code database in phpmyadmin can find website link/url signup controllers...
try signup link... put desired password , complete signup...
after signup go in phpmyadmin , database of website , find user table.. find newly inserted user row... copy password of row , and paste in default admin user password column data... able login website password...
edit:
please comment out below line
/* if (!$this->ion_auth->logged_in() || !$this->ion_auth->is_admin()) { redirect('auth', 'refresh'); } */
and put in url example.com/auth/create_user , create user... let create new row in user table , can 2 things... 1) check in database dere column assign admin role... assign ur newly added user admin role... is_admin or role
2) copy newly added user password table password column of user row , replace password of admin user row password column in database
let me know if helped...
Comments
Post a Comment