89 Commits

Author SHA1 Message Date
Artur Iusupov 3a5a15fe77 fix(site): require explicit email verification setting
Replace OptionalBool with an explicit require_email_verification value for the login settings save request while keeping legacy read defaults intact.

Use positive RequireEmailVerification naming through the registration flow and inline the site setting mapping.

Add validation, save-path, and registration coverage for the explicit email verification setting.
2026-07-10 10:19:39 +08:00
Artur Iusupov 7123326515 feat(site): allow disabling email verification 2026-07-10 10:19:39 +08:00
liruohrh 740ac61bb2 fix: get right lang 2025-12-08 20:06:18 +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 5e705a124b refactor(lint): improve error handling and code consistency across multiple files 2025-12-01 12:27:25 +08:00
Giorgio Bonvicini 6381a2192e fix: update the visit cookie if it does not match the visit token
Previous behavior was to keep any existing visit cookies, which caused problems like #1334
2025-05-26 10:42:54 +08:00
LinkinStars ef30ef228d feat(user): user can't login when suspended 2025-04-17 10:33:53 +08:00
Seiya f92860e8ec chore: remove duplicated security requirements (#1302)
close #1300
2025-04-02 09:12:39 +08:00
LinkinStars 8a33548396 Merge branch 'dev' into test 2025-01-13 16:39:11 +08:00
LinkinStars a5d826c6d4 feat(file): add ENV for skip the file access verification 2025-01-13 16:38:19 +08:00
Luffy 0285a47ae3 fix: missing ApiKeyAuth configuration in Swagger 2025-01-09 17:00:28 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
LinkinStars 7d75f2fa97 feat(user): add the API for get staff 2024-04-26 10:26:40 +08:00
LinkinStars c55d318e64 feat(captcha): add captcha plugin 2024-04-07 11:47:39 +08:00
LinkinStars abe0680641 Release/1.3.0 (#876)
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: Han Gao <dhangao@hotmail.com>
Co-authored-by: wzy <770954908@qq.com>
Co-authored-by: zahash <zahash.z@gmail.com>
Co-authored-by: Hosein Beigi <hbsciw@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: 而立 <cuihengqing@cai-inc.com>
Co-authored-by: foxzero-007 <chq2549603631@gmail.com>
Co-authored-by: easy <58644520+foxzero-007@users.noreply.github.com>
Co-authored-by: robin <robin@rnode.me>
Co-authored-by: Akhil <surapuramakhil@gmail.com>
Co-authored-by: Shaobiao Lin <whalevocal@gmail.com>
2024-03-22 17:25:46 +08:00
LinkinStars 937de43978 Release/1.2.5 (#759)
Signed-off-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: shuai <lishuailing@sifou.com>
Co-authored-by: kelvinkuo <kelvinkuo224@gmail.com>
Co-authored-by: hgaol <dhangao@hotmail.com>
Co-authored-by: sy-records <52o@qq52o.cn>
Co-authored-by: Adam Vollrath <adam.d.vollrath@gmail.com>
Co-authored-by: kumfo <kumfo@sifou.com>
Co-authored-by: Yang Wong <yang wang>
Co-authored-by: hbsciw <hbsciw@gmail.com>
2024-01-29 17:19:41 +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 c6743721a2 fix(visit): force update visit token when login 2023-10-13 16:53:11 +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 ea614f0193 feat(user): admin can use reserved username 2023-09-21 10:48:57 +08:00
LinkinStars 2bd8f7f771 feat(notification): add new question notification 2023-08-22 12:00:53 +08:00
LinkinStars 6a3d2f95d2 feat(notification): add user notification config API 2023-08-21 15:07:30 +08:00
LinkinStars eef4b9df9e feat(user): update user status 2023-08-04 15:47:50 +08:00
aichy 50ef591fc8 update captcha 2023-08-02 16:21:02 +08:00
aichy c470a8d381 update captcha 2023-07-28 16:44:01 +08:00
aichy e31fc6ebff update captcha 2023-07-21 16:06:28 +08:00
aichy 12cc225d5b update captcha 2023-07-20 15:34:35 +08:00
aichy a8c13e5bb4 update captcha 2023-07-19 18:42:12 +08:00
aichy126 638a64f87e update captcha 2023-07-18 18:29:37 +08:00
aichy126 c6baf9aa04 update captcha 2023-07-18 18:18:58 +08:00
LinkinStars cc0a03117c refactor(migrations): refactor migrations service 2023-06-14 16:53:56 +08:00
LinkinStars 420667cd3e Merge branch 'github-main' into feat/1.1.0/context 2023-06-06 17:09:35 +08:00
LinkinStars 1c2151d710 refactor(shortid): remove short id variable 2023-06-02 16:53:49 +08:00
aichy126 44983b89fc Merge branch 'feat/1.1.0/report' into test 2023-06-02 15:35:48 +08:00
aichy126 a7948729d5 update search user 2023-06-02 15:35:20 +08:00
LinkinStars 7662e9a552 refactor(upload): extract uploader service interface 2023-05-31 16:25:47 +08:00
LinkinStars fb412cb417 refactor(avatar): remove all avatar global variables config 2023-05-29 14:58:58 +08:00
aichy126 144caea4f9 update invite user 2023-05-23 14:54:59 +08:00
aichy126 3e17559623 update modify pass 2023-05-17 17:27:29 +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 e280358b7c Merge remote-tracking branch 'github/feat/1.1.2/ui' into feat/1.1.2/user-center
# Conflicts:
#	Makefile
#	cmd/answer/main.go
#	go.mod
#	go.sum
#	i18n/en_US.yaml
#	internal/base/reason/reason.go
#	internal/service/uploader/upload.go
2023-04-14 18:17:28 +08:00
LinkinStars a3cc0ac38a feat(usercenter): add user center plugin and agent 2023-04-14 17:33:22 +08:00
LinkinStars 150432835b feat(user): return user info when changed email 2023-04-04 15:13:32 +08:00
LinkinStars cd742b7560 fix(user): Remove admin cache when user logout. 2023-03-01 11:47:31 +08:00
LinkinStars 1de3ec27e5 fix(user): User reset password should not tell the user if the email exists. 2023-02-23 11:55:40 +08:00
aichy126 c1fa2b13f6 fix RetrievePassWord code 2023-01-31 10:04:52 +08:00
LinkinStar 5c2723e617 fix(i18n): If the translation content is not found, use the default language for translation 2023-01-06 18:00:51 +08:00