Commit Graph

530 Commits (c5a25f610ab37f020038299a7e82ebb0424396ee)

Author SHA1 Message Date
Kegan Dougal 34d7896b06 More helpful 400 error messages. 10 years ago
Kegan Dougal 2c00e1ecd9 Be consistent when associating keys with login types for registration/login. 10 years ago
Kegan Dougal 04fbda46dd Make captcha work again with the new registration logic. 10 years ago
Erik Johnston 5bd9369a62 Correctly handle the 'age' key in events and pdus 10 years ago
Kegan Dougal 285ecaacd0 Split out password/captcha/email logic. 10 years ago
Kegan Dougal 34878bc26a Added LoginType constants. Created general structure for processing registrations. 10 years ago
Erik Johnston afb7f173cf Bump version and change log 10 years ago
Erik Johnston 14975ce5bc Fix bug where we relied on the current_state_events being updated when we are handling type specific persistence 10 years ago
Erik Johnston 667e747ed1 Fix bug where we no longer stored user_id on Pdus 10 years ago
Erik Johnston 39e3fc69e5 Make the state resolution use actual power levels rather than taking them from a Pdu key. 10 years ago
Erik Johnston b42fe05c51 Fix bug where we incorrectly removed a remote host from the list of hosts in a room when any user from that host left that room even if they weren't the last user from that host in that room 10 years ago
Erik Johnston ca1ae7cf9b Fix bug where we didn't return a tuple when expected. 10 years ago
Paul "LeoNerd" Evans aa525e4a63 More accurate docs / clearer paramter names in RoomMemberStore 10 years ago
Paul "LeoNerd" Evans a87eac4308 Revert recent changes to RoomMemberStore 10 years ago
Paul "LeoNerd" Evans a840ff8f3f Now don't need the other logger.debug() call in _execute 10 years ago
Paul "LeoNerd" Evans 1c20249884 Logging of all SQL queries via the 'synapse.storage.SQL' logger 10 years ago
Paul "LeoNerd" Evans e53d77b501 Add a .runInteraction() method on SQLBaseStore itself to wrap the .db_pool 10 years ago
Paul "LeoNerd" Evans 249e8f2277 Add a better _store_room_member_txn() method that takes separated fields instead of an event object; also add FIXME comment about a big bug in the logic 10 years ago
Paul "LeoNerd" Evans aaf9ab68c6 Rename _store_room_member_txn to _store_room_member_from_event_txn so we can create another, more sensible function of that name 10 years ago
Paul "LeoNerd" Evans 55397f6347 prepare_database() on db_conn, not plain name, so we can pass in the connection from outside 10 years ago
Paul "LeoNerd" Evans 2faffc52ee Make sure not to open our TCP ports until /after/ the DB is nicely prepared ready for use 10 years ago
Paul "LeoNerd" Evans 6c1f0055dc No need for a tiny run() function any more, just use reactor.run() directly 10 years ago
Paul "LeoNerd" Evans ce55a8cc4b Move database preparing code out of homserver.py into storage where it belongs 10 years ago
Erik Johnston a75f8686ba Fix bug where we used an unbound local variable if we ended up rolling back the persist_event transaction 10 years ago
Erik Johnston e062f2dfa8 Apparently we can't do txn.rollback(), so raise and catch an exception instead. 10 years ago
Kegan Dougal 76fe7d4eba Added num_joined_users key to /publicRooms for each room. Show this information in the webclient. 10 years ago
Erik Johnston 942d8412c4 Handle the case where we don't have a common ancestor 10 years ago
Erik Johnston 83ce57302d Fix bug in state handling where we incorrectly identified a missing pdu. Update tests to catch this case. 10 years ago
Erik Johnston c0577ea87a Rollback if we try and insert duplicate events 10 years ago
Erik Johnston 768ff1a850 Fix race in presence handler where we evicted things from cache while handling a key therein 10 years ago
Erik Johnston 7735aad9d6 Bump version and changelog 10 years ago
Erik Johnston de55ba218f Fix race in presence handler where we evicted things from cache while handling a key therein 10 years ago
Erik Johnston 71fb748d70 Bump version and changelog 10 years ago
Erik Johnston 2205aba3ed Fix bug where we used an event_id as a pdu_id 10 years ago
Kegan Dougal b5749c75d9 Reload captchas when they fail. Cleanup on success. 10 years ago
Kegan Dougal 3ea6f01b4e 80 chars please 10 years ago
Kegan Dougal 37e53513b6 Add config opion for XFF headers when performing ReCaptcha auth. 10 years ago
Kegan Dougal 1829b55bb0 Captchas now work on registration. Missing x-forwarded-for config arg support. Missing reloading a new captcha on the web client / displaying a sensible error message. 10 years ago
Erik Johnston 6d19fe1481 Fix generation of event ids so that they are consistent between local and remote ids 10 years ago
Erik Johnston 781ff713ba When getting a state event also include the previous content 10 years ago
Kegan Dougal 0b9e1e7b56 Added a captcha config to the HS, to enable registration captcha checking and for the recaptcha private key. 10 years ago
Erik Johnston f47f42090d Add support for inviting people when you create a room 10 years ago
Erik Johnston 480438eee6 Validate power levels event changes. Change error messages to be more helpful. Fix bug where we checked the wrong power levels 10 years ago
Erik Johnston 9dd4570b68 Generate m.room.aliases event when the HS creates a room alias 10 years ago
Erik Johnston 982604fbf2 Empty string is not a valid JSON object, so don't return them in HTTP responses. 10 years ago
Erik Johnston 250ee2ea7d AUth the contents of power level events 10 years ago
Erik Johnston 95037d8d9d Change the default power levels to be 0, 50 and 100 10 years ago
Erik Johnston 300816ffa1 Bump versions. Update change logs. 10 years ago
Paul "LeoNerd" Evans 4c3512a45c Added a TODO note about YAML modeline for editors 10 years ago
Erik Johnston bcaea74352 Error code must be an integer 10 years ago