Skip to content

Instantly share code, notes, and snippets.

@jkbryan
Created October 19, 2017 20:13
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save jkbryan/ae39a82bacb4776d5cba78216dea7fca to your computer and use it in GitHub Desktop.
Save jkbryan/ae39a82bacb4776d5cba78216dea7fca to your computer and use it in GitHub Desktop.
U2F Login for Wordpress
public function __construct($appId, $attestDir = null) {
if(OPENSSL_VERSION_NUMBER < 0x10000000) {
throw new Error('OpenSSL has to be atleast version 1.0.0, this is ' . OPENSSL_VERSION_TEXT, ERR_OLD_OPENSSL);
}
$this->appId = $appId;
$this->attestDir = $attestDir;
}
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment