dendrite/internal
S7evinK 895c8f03c0
Fix pg user already exists ()
* Return newly created error if user already exists ()

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
..
basecomponent Server key component () 2020-05-27 10:19:24 +01:00
caching Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
config Send-to-device support () 2020-06-01 17:50:19 +01:00
http Miscellaneous fixes () 2020-05-26 14:41:16 +01:00
httpapis Define path prefixes in a package that doesn't create import cycles 2020-05-22 14:18:41 +01:00
sqlutil Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
test Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
transactions Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
consumers.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
eventcontent.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
events.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
httpapi.go Define path prefixes in a package that doesn't create import cycles 2020-05-22 14:18:41 +01:00
httpapi_test.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
log.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
partition_offset_table.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
postgres.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
postgres_wasm.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
routing.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00
sql.go Fix pg user already exists () 2020-06-01 18:34:29 +01:00
types.go Fix and shuffle directory around () 2020-05-21 14:40:13 +01:00