[!] Remove plain auth code/passphrase from application log

This commit is contained in:
annelin 2019-04-07 15:04:01 +03:00
parent 857e8bd202
commit 51bc5645b2

View file

@ -177,7 +177,7 @@ class TelegramClient
# processing authorization # # processing authorization #
def process_auth(typ, data) def process_auth(typ, data)
@logger.info 'Check authorization :%s [%s]..' % [typ.to_s, data] @logger.info 'Check authorization :%s..' % typ.to_s
@client.check_authentication_code(data) if typ == :code @client.check_authentication_code(data) if typ == :code
@client.check_authentication_password(data) if typ == :password @client.check_authentication_password(data) if typ == :password
end end