96 Commits

Author SHA1 Message Date
Товарищ программист
5f8924ed4e
feat: support overriding configuration with env (#590) 2022-03-20 23:21:09 +08:00
Yixiang Zhao
9f7924a6e0
fix: mask email and phone number on the backend (#563)
* fix: mask email and phone number on the backend

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>

* fix: login with masked email or phone

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>

* fix: improve regex

Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>
2022-03-15 12:54:57 +08:00
Yang Luo
5de417ecf7 Add gc provider. 2022-03-14 00:32:36 +08:00
Yang Luo
a4fc04474e Add NotifyPayment API. 2022-03-07 00:33:45 +08:00
Yang Luo
bf5d4eea48 Add alipay provider. 2022-03-06 22:46:02 +08:00
Rafael Firmino
68ef5f8311
test: add tests in strings manipulation (#477)
* test: add tests in strings manipulation

Add tests 
improving functions like BoolToString, CamelToSnakeCase, GetMinLenStr and SnakeString

* Add copyrig

* test: fix tests description

* test: add tests for function manupulate string
2022-02-15 21:56:59 +08:00
Gucheng Wang
db37f53d6c Update license headers. 2022-02-13 23:39:27 +08:00
Rafael Firmino
c37b0111a7
test: add tests in setting file (#481)
* test: add tests in setting file

* Add Copyright

* fix: format importation convention

Co-authored-by: Rafael Firmino <rafaelfirmino@gmail.com>
2022-02-10 17:21:27 +08:00
Rafael Firmino
bd38552db5
test: add tests in time util package (#474)
* test: add tests in time util package

* Add copyright
2022-02-07 22:21:19 +08:00
Yang Luo
0720794e75 Fix bug in IsTokenExpired(). 2022-02-05 21:16:30 +08:00
Gucheng Wang
479daf4fa4 Improve code format. 2022-01-28 17:45:41 +08:00
Steve0x2a
d129202b95
fix: no database check when using accessToken (#461)
Signed-off-by: 0x2a <stevesough@gmail.com>
2022-01-28 15:07:42 +08:00
Yang Luo
4b65320a96 Support user uploading via xlsx. 2021-12-31 13:00:35 +08:00
Steve0x2a
067ae5448f
fix: idp using goth shows wrong display name (#398)
* fix: adjust the accessToken field

Signed-off-by: 0x2a <stevesough@gmail.com>

* fix: missing name and owner

Signed-off-by: 0x2a <stevesough@gmail.com>

* fix: get wrong display name

Signed-off-by: 0x2a <stevesough@gmail.com>
2021-12-27 18:55:25 +08:00
Yixiang Zhao
10a85f2386
feat: add server-side search, filter and sorter for all pages (#388)
Signed-off-by: Yixiang Zhao <seriouszyx@foxmail.com>

Co-authored-by: Yang Luo <hsluoyz@qq.com>
2021-12-25 10:55:10 +08:00
Yang Luo
e64f181e28 Add getCasdoorColumns(). 2021-12-20 00:26:46 +08:00
Yang Luo
5ee5299a68 Improve syncer code. 2021-12-19 22:30:54 +08:00
Eng Zer Jun
726e4e3dc1
refactor: move from io/ioutil to io and os packages (#366)
* chore: format code by running `go fmt ./...`

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>

* refactor: move from io/ioutil to io and os packages

The io/ioutil package has been deprecated as of Go 1.16, see
https://golang.org/doc/go1.16#ioutil. This commit replaces the existing
io/ioutil functions with their new definitions in io and os packages.

Signed-off-by: Eng Zer Jun <engzerjun@gmail.com>
2021-12-13 09:49:43 +08:00
Lex Lim
64fc810359
fix: panic while insert record when request uri too long (#325)
Signed-off-by: Lex Lim <hyperzlink@outlook.com>
2021-11-12 00:01:37 +08:00
Gucheng Wang
77fffcacac Refactor the record code. 2021-11-07 16:51:16 +08:00
Gucheng Wang
4d71725bf5 Add i18n util code and update translation files. 2021-11-06 20:18:25 +08:00
Gucheng Wang
5526286ad8 Use RS256 to sign JWT token. 2021-10-30 14:18:48 +08:00
Yang Luo
90ec8ec787 Add GetOwnerAndNameFromIdNoCheck() to fix bug. 2021-09-05 23:46:55 +08:00
sh1luo
c55fa4f452 feat: add local file system storage provider (#224)
Signed-off-by: sh1luo <690898835@qq.com>
2021-08-14 14:19:45 +08:00
sh1luo
8c66ef6860 fix: improve code specification (#231) 2021-08-14 14:18:08 +08:00
Yang Luo
af3def97bf Fix avatar upload. 2021-08-14 14:08:29 +08:00
Yang Luo
0c657f0487 Get real IP for verification log. 2021-08-03 22:34:12 +08:00
Kininaru
3d493b8d8f
feat: integrate Storage config into providers (#198)
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-26 11:39:49 +08:00
Kininaru
4a930121c4 feat: session without autosignin will expire
Signed-off-by: Kininaru <shiftregister233@outlook.com>
2021-07-19 10:14:14 +08:00
WindSpiritSR
705d2ede6b feat: support LDAP (#160)
Signed-off-by: WindSpiritSR <simon343riley@gmail.com>
2021-07-19 10:13:23 +08:00
killer
21b36bbb47 feat: add UI to view logs
Signed-off-by: killer <1533063601@qq.com>
2021-07-19 10:11:01 +08:00
Yang Luo
2ba44748c2 Add maskEmail(), fix Safari bug. 2021-06-25 21:35:20 +08:00
wasabi
4162ab4984 feat: add dingtalk provider (#94)
* feat: add dingtalk provider

Signed-off-by: zKen <690898835@qq.com>

* fix: amend the comment

Signed-off-by: zKen <690898835@qq.com>
2021-06-09 19:53:22 +08:00
Yang Luo
162c7261a3 Add getDefaultEmailProvider(). 2021-05-15 10:13:12 +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
Yang Luo
6e5aa2bc40 Finish db update sync. 2021-05-09 15:44:12 +08:00
Yang Luo
de67ee9014 Can sync update from 2nd DB. 2021-05-08 22:04:45 +08:00
Yang Luo
904faae6eb Improve CheckUserSignup(). 2021-05-01 17:45:01 +08:00
Yang Luo
5779d57960 Set org's document title and favicon. 2021-04-29 19:51:03 +08:00
Yang Luo
ea9bdbf45e Improve UploadAvatar API. 2021-04-28 19:02:01 +08:00
Yang Luo
64c9548019 Update license header. 2021-03-13 23:09:14 +08:00
Yang Luo
9e8bde509a Add clientId and clientSecret to app. 2021-03-06 16:39:17 +08:00
Yang Luo
6e015a959f Add user's id. 2021-02-13 20:10:41 +08:00
Yang Luo
3ea58a0cdc Add account APIs. 2021-02-11 22:56:08 +08:00
Yang Luo
df83602e17 Serve static files in Go. 2020-10-20 23:24:07 +08:00
Yang Luo
b5eb673c81 Add user list and edit pages. 2020-10-20 23:14:03 +08:00