Menu

Voucher with username and password does not work

Help
2017-05-31
2018-04-26
  • Gunnar Rangøy

    Gunnar Rangøy - 2017-05-31

    Creating vouchers with username/password does not work in the current version [r2189].

    Seems like the migration from cake2 to cake3 is did not properly take this function into account.

    I've reverted to [r2137] since the migration starts in [r2138 ], and it works now.

    My usecase is that our receptionist has a list of Vouchers (usernames) and notes the client's name on this list, so we have a record of who the vouchers has been given to.

     

    Related

    Commit: [r2137]
    Commit: [r2138]
    Commit: [r2189]


    Last edit: Gunnar Rangøy 2017-05-31
  • iwan setiawan

    iwan setiawan - 2017-06-15
    Post awaiting moderation.
  • Giacomo Trovato

    Giacomo Trovato - 2018-04-24

    Hi Gunnar,

    I've this problem.
    What I need to modify to have it working (I'm not a softawre developer!)?

    Thanks!

     
  • Gunnar Rangøy

    Gunnar Rangøy - 2018-04-26

    Hi Giacomo

    The right solution would be to modify the code. This would have to be done by a software developer, and I haven't had time to dig into the code. Maybe someone could take a look?

    So; i'll have to warn you; I cannot guarantee that this would work for you. Please take a complete backup before you try. Hopefully the database layout has not been changed between version 2137 and the version you are running, because I think the scripts are only made for upgrading and not downgrading.

    So if you want to try if reverting back:

    I don't remeber the details of how I did it, but I think you should be able to downgrade by using the "Update the code" step from this guide; https://www.radiusdesk.com/docuwiki/getting_started/install_ubuntu_update#update_the_code

    In this step you should add the -r 2137 paremeter to all svn update commands.

    Ie.

    sudo svn update
    

    Becomes

    sudo svn update -r 2137
    

    So (without trying) I guess it should be something like this;

    #CakePHP v2 Application
    cd /usr/share/nginx/html/cake2/rd_cake
    sudo svn update -r 2137
    
    #CakePHP v3 Application
    cd /usr/share/nginx/html/cake3
    sudo svn update -r 2137
    #Viever
    cd /usr/share/nginx/html/rd
    sudo svn update -r 2137
    #Login Pages
    cd /usr/share/nginx/html/login
    sudo svn update -r 2137
    
    #Confirm the rights
    
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/tmp
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/Locale
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/webroot/img/flags
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/webroot/img/nas
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/webroot/img/realms
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/webroot/img/dynamic_details
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/webroot/img/dynamic_photos
    sudo chown -R www-data. /usr/share/nginx/html/cake2/rd_cake/webroot/files/imagecache
    
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/tmp
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/logs
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/realms
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/dynamic_details
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/dynamic_photos
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/img/access_providers
    sudo chown -R www-data. /usr/share/nginx/html/cake3/rd_cake/webroot/files/imagecache
    

    Good luck.

    It would be great if someone could take a look and actually fixing the code.

     

    Last edit: Gunnar Rangøy 2018-04-26
  • Giacomo Trovato

    Giacomo Trovato - 2018-04-26

    Hi Gunnar,

    thank you very much.
    For sure would be better for me to modify only the code related to the bug. Any hints from someone?
    In any case if someone can confirm the procedure you have described, would be greatly appreciated.

    Thanks again!

     

Log in to post a comment.

MongoDB Logo MongoDB