dendrite/clientapi/auth/storage/accounts/postgres
S7evinK 895c8f03c0
Fix pg user already exists (#1076)
* Return newly created error if user already exists (#1002)

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Rename variable

* Remove check for account and use returned error

* Return ErrUserExists

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* State that CreateAccount will return err ErrUserExists if the user exists

Signed-off-by: Till Faelligen <tfaelligen@gmail.com>

* Also check sqlite for constraint error

* Revert "Also check sqlite for constraint error"

This reverts commit 7d310514

* Check for sqlite3 constraint error

* Add documentation to CreateAccount

* Move ErrUserExists to accounts package

* Revert "Move ErrUserExists to accounts package"
Import Cycle..

This reverts commit be3d4cda

Co-authored-by: Kegsay <kegan@matrix.org>
2020-06-01 18:34:29 +01:00
..
account_data_table.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00
accounts_table.go bugfix: Fix a race condition when creating guest accounts (#882) 2020-03-06 18:00:07 +00:00
filter_table.go Support sqlite in addition to postgres (#869) 2020-02-13 17:27:33 +00:00
membership_table.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00
profile_table.go bugfix: Fix a race condition when creating guest accounts (#882) 2020-03-06 18:00:07 +00:00
storage.go Fix pg user already exists (#1076) 2020-06-01 18:34:29 +01:00
threepid_table.go Fix #897 and shuffle directory around (#1054) 2020-05-21 14:40:13 +01:00