SetPassword
public struct SetPassword : Codable, Equatable, TDFunction
Changes the password for the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed
-
Undocumented
Declaration
Swift
public typealias Result = PasswordState -
Previous password of the user
Declaration
Swift
public let oldPassword: String -
New password of the user; may be empty to remove the password
Declaration
Swift
public let newPassword: String -
New password hint; may be empty
Declaration
Swift
public let newHint: String -
Pass true if the recovery email address should be changed
Declaration
Swift
public let setRecoveryEmailAddress: Bool -
New recovery email address; may be empty
Declaration
Swift
public let newRecoveryEmailAddress: String -
Changes the password for the user. If a new recovery email address is specified, then the change will not be applied until the new recovery email address is confirmed
Declaration
Swift
public init(oldPassword: String, newPassword: String, newHint: String, setRecoveryEmailAddress: Bool, newRecoveryEmailAddress: String)Parameters
oldPasswordPrevious password of the user
newPasswordNew password of the user; may be empty to remove the password
newHintNew password hint; may be empty
setRecoveryEmailAddressPass true if the recovery email address should be changed
newRecoveryEmailAddressNew recovery email address; may be empty
View on GitHub
Install in Dash
SetPassword Structure Reference