UserRecoveryData
public struct UserRecoveryData : Content
extension UserRecoveryData: RCFValidatable
Used to attempt to recover an account in a forgotten-password type scenario.
Required by: POST /api/v3/auth/recovery
See AuthController.recoveryHandler(_:data:).
-
The user’s username.
Declaration
Swift
var username: String -
The string to use – any one of: password / registration key / recovery key.
Declaration
Swift
var recoveryKey: String -
The new password to set for the account.
Declaration
Swift
var newPassword: String -
Declaration
Swift
func runValidations(using decoder: ValidatingDecoder) throws
View on GitHub