Login Problem - UberCMS

Results 1 to 11 of 11
  1. #1
    Elite Member vikingboy is offline
    Member +Rank
    Jul 2012 Join Date
    110Posts

    config Login Problem - UberCMS

    Hi,

    My problem is that I have recently switched from HabboPHP (BcStorm Database) to UberCMS (BcStorm database).

    With old accounts, when I try to login it simply refreshes the index.
    However, when I create a new account (which has a different auth_ticket) it works fine.

    Is it possible to convert the old auth_tickets to make them work so the can login or something along those lines?

    .. is there any hope?

    Cheers.


  2. #2
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Login Problem - UberCMS

    It has nothing to do with the auth_tickets, but with the password hashing. Change the uberhash/userhash to md5.

  3. #3
    Elite Member vikingboy is offline
    Member +Rank
    Jul 2012 Join Date
    110Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by BaasHotel View Post
    It has nothing to do with the auth_tickets, but with the password hashing. Change the uberhash/userhash to md5.
    How do I do that?
    Thanks for your reply so quickly.

    Will Rep!

  4. #4
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by vikingboy View Post
    How do I do that?
    Thanks for your reply so quickly.

    Will Rep!
    I'll take a look at my own UberCMS for you, will edit my post when I found it. (:

    EDIT:
    Go to includes/class.users.php and search for:
    Spoiler:

    Code:
    	function UserHash($password, $username)
    	{
    		return sha1(md5($password) . strtolower($username));
    	}

    And change it to:
    Spoiler:

    Code:
    	function UserHash($password)
    	{
    		return md5($password);
    	}

  5. #5
    Elite Member vikingboy is offline
    Member +Rank
    Jul 2012 Join Date
    110Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by BaasHotel View Post
    I'll take a look at my own UberCMS for you, will edit my post when I found it. (:

    EDIT:
    Go to includes/class.users.php and search for:
    Spoiler:

    Code:
    	function UserHash($password, $username)
    	{
    		return sha1(md5($password) . strtolower($username));
    	}

    And change it to:
    Spoiler:

    Code:
    	function UserHash($password)
    	{
    		return md5($password);
    	}
    Thanks for your reply;

    It seems that whenever I login with my old or new account it redricts me back to my localhost instead of localhost/me.php

    However, when I switch back to "return sha1(md5($password) . strtolower($username));" it begins working again.

    I am not using any skins or modified page items or etc. This is the standard skin and files.

    What do you think?
    Last edited by vikingboy; 06-07-13 at 06:46 PM.

  6. #6
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by vikingboy View Post
    Thanks for your reply;

    It seems that whenever I login with my old or new account it redricts me back to my localhost instead of localhost/me.php

    However, when I switch back to "return sha1(md5($password) . strtolower($username));" it begins working again.

    I am not using any skins or modified page items or etc. This is the standard skin and files.

    What do you think?
    Does it log you in when you use md5 decryption or are you still not logged in then?

  7. #7
    Elite Member vikingboy is offline
    Member +Rank
    Jul 2012 Join Date
    110Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by BaasHotel View Post
    Does it log you in when you use md5 decryption or are you still not logged in then?
    When I have your md5 decryption it doesnt log in, it just "refreshes" the index page; for both old and new accounts.

    When I switch back and login with an new account it logs me in to /me.php, but old accounts dont work.

  8. #8
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by vikingboy View Post
    When I have your md5 decryption it doesnt log in, it just "refreshes" the index page; for both old and new accounts.

    When I switch back and login with an new account it logs me in to /me.php, but old accounts dont work.
    Means that you still have the wrong encryption, do you know which encryption habboPHP uses?

  9. #9
    Elite Member vikingboy is offline
    Member +Rank
    Jul 2012 Join Date
    110Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by BaasHotel View Post
    Means that you still have the wrong encryption, do you know which encryption habboPHP uses?
    I can give you the auth_ticket?
    Or anything you need from one of the files to look in.

    But I still dont understand that when I use md5 decryption new accounts created with ubercms encryption dont work..

  10. #10
    Gaby is offline
    Grand MasterRank
    Apr 2013 Join Date
    Viva HollandiaLocation
    1,607Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by vikingboy View Post
    I can give you the auth_ticket?
    Or anything you need from one of the files to look in.

    But I still dont understand that when I use md5 decryption new accounts created with ubercms encryption dont work..
    Because the new accounts are created with a sha1(md5(username * password)) encryption. So you should decide which ones you would like to keep, the old ones or the new ones? :P

  11. #11
    Elite Member vikingboy is offline
    Member +Rank
    Jul 2012 Join Date
    110Posts

    Re: Login Problem - UberCMS

    Quote Originally Posted by BaasHotel View Post
    Because the new accounts are created with a sha1(md5(username * password)) encryption. So you should decide which ones you would like to keep, the old ones or the new ones? :P
    I would like to keep the old ones.
    What do I do to make it working again?

    If you need any type of file from uber of habbophp, feel free to ask, or anything from db.



Advertisement