94 Commits

Author SHA1 Message Date
Artur Iusupov 3b6f981b81 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-06-15 14:44:34 +08:00
Artur Iusupov d93e31e92a feat(site): allow disabling email verification 2026-06-15 14:44:34 +08:00
ferhat elmas f723d120d9 feat: add golangci-lint into lint target
* replace empty interface with any
* run fmt via golangci-lint

related to #1432

Signed-off-by: ferhat elmas <elmas.ferhat@gmail.com>
2025-12-01 11:14:38 +08:00
LinkinStars b78be61ee8 refactor(user): simplify suspended until logic 2025-06-26 16:42:24 +08:00
LinkinStars 3b8b5871a6 feat(user): add user status messages and support localization 2025-06-26 16:10:09 +08:00
LinkinStars 6d02706d4d feat(user): add user suspension functionality 2025-06-26 14:42:08 +08:00
Luffy afdf6ce778 fix: Unified display name and username length checks 2025-05-23 15:09:34 +08:00
sy-records 59f0c3fb63 fix: Username minimum length still set to 4 2025-04-18 11:52:55 +08:00
LinkinStars 0618947350 refactor(name): rename incubator-answer 2025-01-07 10:39:23 +08:00
zahash 3e91f03b40 change minimum username length to 2 instead of 4 2024-10-12 09:59:17 +08:00
LinkinStars 7d75f2fa97 feat(user): add the API for get staff 2024-04-26 10:26:40 +08:00
LinkinStars 552af5fa50 feat(code): update captcha code plugin 2024-04-10 12:10:07 +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 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 99a61fcf7c feat(user): anonymising notifications of deleted users 2023-09-13 14:36:08 +08:00
fen a00c781295 fix typo 2023-08-23 17:38:50 +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 c470a8d381 update captcha 2023-07-28 16:44:01 +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 a7948729d5 update search user 2023-06-02 15:35:20 +08:00
LinkinStars fb412cb417 refactor(avatar): remove all avatar global variables config 2023-05-29 14:58:58 +08:00
LinkinStars c7a7cc711e fix(gravatar): replace when set gravatar url 2023-05-25 17:00:03 +08:00
LinkinStars 01bd603570 Merge branch 'feat/1.1.0/sql' into feat/1.1.0/report
# Conflicts:
#	internal/controller/question_controller.go
#	internal/migrations/migrations.go
#	internal/migrations/v13.go
2023-05-23 16:44:34 +08:00
LinkinStars 7d23b17cdb fix(password): password can't contains space. 2023-05-22 15:09:42 +08:00
aichy126 f266da8cea update ActionRecordReq 2023-05-17 18:32:13 +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 1de9ef6a89 Merge remote-tracking branch 'github/feat/1.1.1/user-center' into beta.2/1.1.0
# Conflicts:
#	go.mod
#	i18n/en_US.yaml
#	internal/base/reason/reason.go
2023-05-09 10:39:04 +08:00
LinkinStars dacc27e373 Merge branch 'beta/1.1.0' into beta.2/1.1.0
# Conflicts:
#	internal/migrations/migrations.go
#	internal/schema/user_schema.go
#	ui/src/common/interface.ts
2023-05-09 10:15:58 +08:00
LinkinStars 4f468b58d0 feat(password): logout other user when update password 2023-05-08 17:51:29 +08:00
LinkinStars b50835f04e feat(email): verify password when update email 2023-05-06 15:53:10 +08:00
LinkinStars cba45d1eaa feat(user): check username after check user center config 2023-04-28 15:46:47 +08:00
LinkinStars e5df07ad7c feat(plugin): add user center plugin 2023-03-29 17:12:45 +08:00
LinkinStars 9bd9b475f4 Merge branch 'feat/ui-1.1.0' into feature-plugin
# Conflicts:
#	internal/base/reason/reason.go
#	internal/schema/user_schema.go
#	internal/service/user_service.go
2023-03-21 11:45:50 +08:00
LinkinStars 91f5f3290c feat(plugin): Return whether to set password status at login 2023-03-10 18:01:16 +08:00
LinkinStars 4a8ae2b166 Merge branch 'dev' into feature-plugin 2023-03-07 15:39:07 +08:00
LinkinStars f319b43412 Merge remote-tracking branch 'github/dev' into feat/1.0.7/user-avatar 2023-03-07 15:24:08 +08:00
LinkinStars 29eaa699e5 fix(avatar): Set user info default avatar 2023-03-03 18:04:53 +08:00
LinkinStars bbba11f5b1 Merge remote-tracking branch 'github/feat/1.0.7/tag' into feat/1.0.7/user-avatar 2023-03-03 17:05:23 +08:00
LinkinStars 4759e8778f feat(tag): Add revision when add tag 2023-03-03 16:59:34 +08:00
LinkinStars 8c871f1399 feat(avatar): Set default user avatar by config 2023-03-02 17:28:48 +08:00
LinkinStars 4c38c73017 feat(plugin): Third-party login to synchronize user avatars 2023-03-02 10:24:32 +08:00
LinkinStars d9f75de803 Merge remote-tracking branch 'github/feat/1.0.6/object-not-found' into test 2023-02-27 11:08:52 +08:00