• As title says on wp shell using lmfwc_get_license(‘MY-LICENSE-KEY-1234’) returned false until I went to /wp-admin/admin.php?page=lmfwc_licenses&action=edit&id=12345 and clicked Save without changing anything.

    Why could that be? Do I have to re-save everything so this doesn’t happen again?

Viewing 2 replies - 1 through 2 (of 2 total)
  • Thread Starter vincentra

    (@vincentra)

    I figured out the problem.

    It seems that the plugin takes the keySecret to be xxxxxxxxxxxxxxxxxxxxxxxxxxxx\n and most of my licenses were generated by xxxxxxxxxxxxxxxxxxxxxxxxxxxx so hashes don’t match and lmfwc_get_license() can’t find them.

    Thread Starter vincentra

    (@vincentra)

    Added trim() to file_get_contents() in setSecret() and setDefuse() and now hashes match again.

    This might be just my particular case since I created a Python library that copies what lmfwc does so I can upload license keys programmatically and my keySecret and defuseKey didn’t have the \n at the end.

    Although for some reason the decryption process worked alright even with the new line.

Viewing 2 replies - 1 through 2 (of 2 total)
  • The topic ‘lmfwc_get_license returned false until manual update’ is closed to new replies.