Skip to content
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

Merged
merged 10 commits into from
Nov 4, 2024
Merged

feat/login records #289

merged 10 commits into from
Nov 4, 2024

Conversation

Maxxxxxx-x
Copy link
Contributor

IP is logged in LoginRecords, as requested in [#287]

@Maxxxxxx-x Maxxxxxx-x requested a review from as535364 as a code owner October 28, 2024 15:07
@as535364 as535364 requested a review from Bogay October 31, 2024 09:17
@as535364
Copy link
Member

感覺寫成 decorator 比較適合?
@Bogay 怎麼看

@Bogay
Copy link
Member

Bogay commented Oct 31, 2024

感覺寫成 decorator 比較適合? @Bogay 怎麼看

decorator 的用法會長怎樣?目前我是覺得這樣可以接受,但如果有更適合的做法也不錯

@as535364
Copy link
Member

感覺寫成 decorator 比較適合? @Bogay 怎麼看

decorator 的用法會長怎樣?目前我是覺得這樣可以接受,但如果有更適合的做法也不錯

我只是覺得如果之後還有其他地方要紀錄的話會比較麻煩

@Bogay
Copy link
Member

Bogay commented Oct 31, 2024

感覺寫成 decorator 比較適合? @Bogay 怎麼看

decorator 的用法會長怎樣?目前我是覺得這樣可以接受,但如果有更適合的做法也不錯

我只是覺得如果之後還有其他地方要紀錄的話會比較麻煩

那我傾向等其他地方需要再說

@as535364
Copy link
Member

感覺寫成 decorator 比較適合? @Bogay 怎麼看

decorator 的用法會長怎樣?目前我是覺得這樣可以接受,但如果有更適合的做法也不錯

我只是覺得如果之後還有其他地方要紀錄的話會比較麻煩

那我傾向等其他地方需要再說

那我沒問題了,但建議要上之前在測試機跑一下。
不要再發生慘案了。

@Maxxxxxx-x
Copy link
Contributor Author

是類似於 @logs_ip(action_type, user_id, success) 嗎?

@Bogay
Copy link
Member

Bogay commented Nov 1, 2024

是類似於 @logs_ip(action_type, user_id, success) 嗎?

signature 應該不會長這樣吧(user_id, success 大概要登入後才會知道?),但概念上我想是差不多

@Bogay
Copy link
Member

Bogay commented Nov 4, 2024

先 merge 囉,該部了

@Bogay Bogay merged commit 934d563 into Normal-OJ:develop Nov 4, 2024
1 check passed
@Bogay
Copy link
Member

Bogay commented Nov 4, 2024

BTW 下次可能可以 rebase 整理一下,刪掉多餘的 commits

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

4 participants