- login_name = account_info[0]
- password = if pub_key.nil?
account_info[1]
else
'Use pub_key to login'
end
- password = 'Use pub_key to login' unless pub_key.nil?
'Use pub_key to login' 是为了在email里显示这句话吗?
那就在email里写这句话。哪里的逻辑就实现在哪里。别把数据源污染了。
Thanks,
Fengguang