26 Commits

Author SHA1 Message Date
LinkinStars 869b040e92 fix(auth): enhance admin user cache management and add status checks for email verification and suspension 2026-02-06 20:31:54 +08:00
LinkinStars 90022ce039 fix: integrate API key authentication into existing services and routes 2026-01-29 16:50:25 +08:00
ferhat elmas 670aa32325 refactor(lint): add new linters and fix their issues
* gocritic
* misspell
* modernize (aside, bumping go would be nice)
* testifylint
* unconvert
* unparam
* whitespace

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-05 10:45:55 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
LinkinStars a458f3409c rename all old answerdev/answer link to apache/incubator-answer (#603)
Co-authored-by: shuai <lishuailing@sifou.com>
2023-11-01 14:48:35 +08:00
tison 3d2187d849 chore: add license headers
Signed-off-by: tison <wander4096@gmail.com>
2023-10-26 11:11:23 +08:00
LinkinStars 8524d1494b fix(visit): remove visit token when logout 2023-10-11 15:05:10 +08:00
LinkinStars c2b4a49dc0 feat(visit): only login user can access upload file in private mode. 2023-10-10 16:23:10 +08:00
LinkinStars 8a037f00db feat(cache): upgrade cache interface 2023-08-22 16:10:41 +08:00
LinkinStars b0a04bbf11 Merge remote-tracking branch 'github/feat/1.1.2/user-center' into beta.2/1.1.0
# Conflicts:
#	docs/docs.go
#	docs/swagger.json
#	docs/swagger.yaml
#	go.mod
#	i18n/en_US.yaml
#	internal/base/reason/reason.go
#	internal/migrations/init.go
#	internal/migrations/migrations.go
2023-05-09 10:49:00 +08:00
LinkinStars 4f468b58d0 feat(password): logout other user when update password 2023-05-08 17:51:29 +08:00
LinkinStars f391d3a8e8 chore(log): remove auth log 2023-04-25 14:14:21 +08:00
LinkinStars 8800b376d5 feat(privilege): add privileges API 2023-04-17 18:04:28 +08:00
LinkinStars 7495f068df Fix(role): Fix an issue that admin could not be set correctly under sqlite (#284)
* fix(role): use session in transaction

* refactor(role): rename remove user tokens function
2023-03-26 17:26:16 +08:00
LinkinStars 4759e8778f feat(tag): Add revision when add tag 2023-03-03 16:59:34 +08:00
aichy bcfeef1490 update name modification 2022-12-21 16:55:16 +08:00
LinkinStar 5088c3a9ef feat(role): log out user when user was changed role 2022-12-05 17:34:53 +08:00
LinkinStar cd961eafc2 feat: add timeline api interface 2022-11-22 19:48:27 +08:00
linkinstar e47c5a7e26 Merge branch 'fix/0.4.0/user-status' into 'test'
Fix/0.4.0/user status

See merge request opensource/answer!247
2022-11-17 04:16:59 +00:00
LinkinStar e8ab1c4202 fix: user verified email will update email status. so user status cache should be updated. 2022-11-17 12:10:20 +08:00
aichy126 baf0fce1c1 update reserved tags 2022-11-14 18:07:28 +08:00
LinkinStar 6f1e8b6aa9 feat: add auth repo unit test 2022-10-26 16:59:33 +08:00
LinkinStar c59f48e694 style: rename backyard auth function name 2022-10-26 16:38:34 +08:00
LinkinStar adc760e874 refactor: rename go mod package to answerdev 2022-10-24 16:51:05 +08:00
LinkinStar 2672230e31 fix: status updates are performed when the user status is inconsistent 2022-10-20 18:21:38 +08:00
mingcheng 8e6c49a531 initial commit 2022-09-27 17:59:05 +08:00