Sha256: a48a46c137a317d339e63a4b88707d6b2bbeef12b381e71ee849027be6738ad8
Contents?: true
Size: 458 Bytes
Versions: 27
Compression:
Stored size: 458 Bytes
Contents
# encoding: utf-8 module FIR module Login def login(token) check_token_cannot_be_blank token user_info = fetch_user_info(token) logger.info "Login succeed, previous user's email: #{config[:email]}" unless config.blank? write_config(email: user_info.fetch(:email, ''), token: token) reload_config logger.info "Login succeed, current user's email: #{config[:email]}" logger_info_blank_line end end end
Version data entries
27 entries across 27 versions & 3 rubygems