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

pull/1/head
annelin 5 years ago
parent 857e8bd202
commit 51bc5645b2

@ -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

Loading…
Cancel
Save