-
Notifications
You must be signed in to change notification settings - Fork 5
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
feat/login records #289
feat/login records #289
Conversation
感覺寫成 decorator 比較適合? |
decorator 的用法會長怎樣?目前我是覺得這樣可以接受,但如果有更適合的做法也不錯 |
我只是覺得如果之後還有其他地方要紀錄的話會比較麻煩 |
那我傾向等其他地方需要再說 |
那我沒問題了,但建議要上之前在測試機跑一下。 |
是類似於 @logs_ip(action_type, user_id, success) 嗎? |
signature 應該不會長這樣吧(user_id, success 大概要登入後才會知道?),但概念上我想是差不多 |
先 merge 囉,該部了 |
BTW 下次可能可以 rebase 整理一下,刪掉多餘的 commits |
IP is logged in LoginRecords, as requested in [#287]