Mr Forest
d86f3c88c7
feat: support i18n in backend err messages ( #1232 )
...
* feat: support i18n in backend err messages
* use gofumpt to fmt code
* fix review problems
* support auto generate err message
* delete beego/i18n moudle
* fix Github action test problems
* fix review problems
* use gofumpt to format code
* use gofumpt to fmt code
2022-10-23 15:16:24 +08:00
cofecatt
23f3fe1e3c
feat: update code format ( #1214 )
...
* feat: doc
* feat: doc
* Update model.go
Co-authored-by: Gucheng <85475922+nomeguy@users.noreply.github.com>
2022-10-12 11:42:14 +08:00
Gucheng Wang
8128671c8c
Improve email code
2022-09-04 12:15:07 +08:00
Resulte Lee
c1fe547939
fix: not start countdown if SMS fails to send ( #1057 )
2022-08-22 23:06:41 +08:00
Mikey
79119760f2
style: golint ( #988 )
2022-08-09 16:50:49 +08:00
Товарищ программист
5f8924ed4e
feat: support overriding configuration with env ( #590 )
2022-03-20 23:21:09 +08:00
Gucheng Wang
db37f53d6c
Update license headers.
2022-02-13 23:39:27 +08:00
Gucheng Wang
c22ab44894
Update import path.
2022-01-20 14:11:46 +08:00
Yixiang Zhao
609e9785e4
fix: some bugs about SMS API ( #310 )
...
Signed-off-by: “seriouszyx” <674965440@qq.com>
2021-10-31 08:49:39 +08:00
Yang Luo
c7a3ad901b
Fix PostgreSQL error in getVerificationRecord().
2021-09-20 22:38:04 +08:00
Yang Luo
089f4ff480
Handle error in go-sms-sender.
2021-09-05 10:56:11 +08:00
sh1luo
a4edf47dc4
fix: improvde code logic ( #285 )
...
Signed-off-by: sh1luo <690898835@qq.com>
2021-09-04 22:20:47 +08:00
sh1luo
c632c3c307
fix: replace casdoor with casbin ( #194 )
...
Signed-off-by: sh1luo <690898835@qq.com>
2021-07-25 09:34:25 +08:00
Yang Luo
215b96c881
Let SendEmail() return string.
2021-05-29 15:25:41 +08:00
Yang Luo
2fff5f79ce
Can set email title and content now.
2021-05-24 20:21:41 +08:00
Yang Luo
705c0159d4
Add id to VerificationRecord.
2021-05-24 19:25:35 +08:00
Yang Luo
290c5aac9e
Add user to VerificationRecord.
2021-05-24 01:18:21 +08:00
Yang Luo
dbf11d61a7
Add sms and email providers to app.
2021-05-24 01:02:38 +08:00
Kininaru
66d953a6c1
feat: check user email and phone when signing up
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
phone prefix error
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fix i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fix i18n error
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed useless file
Signed-off-by: Kininaru <shiftregister233@outlook.com>
move timeout to app.conf
Signed-off-by: Kininaru <shiftregister233@outlook.com>
i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
made verification code reusable
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-18 22:20:26 +08:00
Kininaru
9bc29e25ef
fix: add primary key Type to table verification_record
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-18 19:42:03 +08:00
Yang Luo
162c7261a3
Add getDefaultEmailProvider().
2021-05-15 10:13:12 +08:00
Yang Luo
b7cbc0e015
Return sms error message.
2021-05-14 18:19:47 +08:00
Kininaru
1589da0a62
fix: check cn phone regex bug and add check to verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-13 09:55:37 +08:00
Kininaru
827930a020
feat: add reset phone by verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
fixed client bug
Signed-off-by: Kininaru <shiftregister233@outlook.com>
feat: add i18n
Signed-off-by: Kininaru <shiftregister233@outlook.com>
add Casbin License
Signed-off-by: Kininaru <shiftregister233@outlook.com>
removed port from remoteaddr
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-12 22:59:42 +08:00
Kininaru
400e335e68
feat: add reset email by verification code
...
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-05-12 21:38:31 +08:00