[Python] How do I connect my python api to enable login to my wordpress website

Discussão em 'Python' iniciado por Stack, Fevereiro 23, 2025.

  1. Stack

    Stack Membro Participativo

    I am creating an api that would allow users of my wordpress website to also login from a mobile device (I am making use of fast-api). but I cannot figure out how to hash the password from python so that is is compatible with wordpress.

    I am making use of passlib.phpass.

    I have access to my wp-config.php file and I can see some fields such as:

    define( 'AUTH_KEY', '***' );
    define( 'SECURE_AUTH_KEY', '***' );
    define( 'LOGGED_IN_KEY', '***' );
    define( 'NONCE_KEY', '***' );
    define( 'AUTH_SALT', '***' );
    define( 'SECURE_AUTH_SALT', '***' );
    define( 'LOGGED_IN_SALT', '***' );
    define( 'NONCE_SALT', '***' );


    how can I setup the password hash so it is compatible with the one on wordpress.

    I'll really appreciate any help on how to tackle this issue.

    Continue reading...

Compartilhe esta Página