/// <summary> /// Initializes a new instance of the <see cref="AuthWorker"/> class. /// </summary> /// <param name="loginUrl"> /// The url that points to your login.php file /// </param> /// <param name="registerUrl"> /// The url that points to your register.php file /// </param> /// <param name="tokenRedemptionUrl"> /// The url that points to your redeem.php file /// </param> /// <param name="recoverUrl"> /// The recover Url. /// </param> /// <param name="key"> /// The encryption key, MUST Match that set in config.php /// </param> public AuthWorker(string loginUrl, string registerUrl, string tokenRedemptionUrl, string resetPasswordUrl, string recoverUrl, string key) { LoginUrl = loginUrl; RegisterUrl = registerUrl; TokenRedemptionUrl = tokenRedemptionUrl; RecoverUrl = recoverUrl; ResetPasswordUrl = resetPasswordUrl; Safe = new Safe_Transfer(key); }
/// <summary> /// Initializes a new instance of the <see cref="AdminAuthWorker"/> class. /// </summary> /// <param name="generatorUrl"> /// </param> /// <param name="key"> /// The encryption key (same as stored in config.php) /// </param> public AdminAuthWorker(string generatorUrl, string key) { GeneratorUrl = generatorUrl; Safe = new Safe_Transfer(key); }