Merge remote-tracking branch 'td/master'
This commit is contained in:
commit
5bc14138c9
@ -56,7 +56,7 @@ authenticationCodeTypeCall length:int32 = AuthenticationCodeType;
|
||||
authenticationCodeTypeFlashCall pattern:string = AuthenticationCodeType;
|
||||
|
||||
|
||||
//@description Information about the authentication code that was sent @phone_number A phone number that is being authenticated @type Describes the way the code was sent to the user @next_type Describes the way the next code will be sent to the user; may be null @timeout Timeout before the code should be re-sent, in seconds
|
||||
//@description Information about the authentication code that was sent @phone_number A phone number that is being authenticated @type Describes the way the code was sent to the user @next_type Describes the way the next code will be sent to the user; may be null @timeout Timeout before the code can be re-sent, in seconds
|
||||
authenticationCodeInfo phone_number:string type:AuthenticationCodeType next_type:AuthenticationCodeType timeout:int32 = AuthenticationCodeInfo;
|
||||
|
||||
//@description Information about the email address authentication code that was sent @email_address_pattern Pattern of the email address to which an authentication code was sent @length Length of the code; 0 if unknown
|
||||
@ -3869,7 +3869,7 @@ checkDatabaseEncryptionKey encryption_key:bytes = Ok;
|
||||
//@phone_number The phone number of the user, in international format @settings Settings for the authentication of the user's phone number
|
||||
setAuthenticationPhoneNumber phone_number:string settings:phoneNumberAuthenticationSettings = Ok;
|
||||
|
||||
//@description Re-sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode and the next_code_type of the result is not null
|
||||
//@description Re-sends an authentication code to the user. Works only when the current authorization state is authorizationStateWaitCode, the next_code_type of the result is not null and the server-specified timeout has passed
|
||||
resendAuthenticationCode = Ok;
|
||||
|
||||
//@description Checks the authentication code. Works only when the current authorization state is authorizationStateWaitCode @code The verification code received via SMS, Telegram message, phone call, or flash call
|
||||
@ -5050,7 +5050,7 @@ setLocation location:location = Ok;
|
||||
//@phone_number The new phone number of the user in international format @settings Settings for the authentication of the user's phone number
|
||||
changePhoneNumber phone_number:string settings:phoneNumberAuthenticationSettings = AuthenticationCodeInfo;
|
||||
|
||||
//@description Re-sends the authentication code sent to confirm a new phone number for the user. Works only if the previously received authenticationCodeInfo next_code_type was not null
|
||||
//@description Re-sends the authentication code sent to confirm a new phone number for the user. Works only if the previously received authenticationCodeInfo next_code_type was not null and the server-specified timeout has passed
|
||||
resendChangePhoneNumberCode = AuthenticationCodeInfo;
|
||||
|
||||
//@description Checks the authentication code sent to confirm a new phone number of the user @code Verification code received by SMS, phone call or flash call
|
||||
|
@ -996,7 +996,7 @@ unique_ptr<LinkManager::InternalLink> LinkManager::get_internal_link_passport(
|
||||
void LinkManager::update_autologin_domains(string autologin_token, vector<string> autologin_domains,
|
||||
vector<string> url_auth_domains) {
|
||||
autologin_update_time_ = Time::now();
|
||||
autologin_token = std::move(autologin_token);
|
||||
autologin_token_ = std::move(autologin_token);
|
||||
if (autologin_domains_ != autologin_domains) {
|
||||
autologin_domains_ = std::move(autologin_domains);
|
||||
G()->td_db()->get_binlog_pmc()->set("autologin_domains", implode(autologin_domains_, '\xFF'));
|
||||
|
Loading…
Reference in New Issue
Block a user