Commit Graph

18 Commits

Author SHA1 Message Date
5e276f5dc2 feat(email): Recognize guests invited via email
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-10-23 06:11:32 +02:00
ba276d686a fix(ban): Check real bans on joining a conversation and ban guests by IP
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-07-22 10:38:09 +02:00
1ccbf67da2 chore: Run SPDX convertor
Signed-off-by: Joas Schilling <coding@schilljs.com>
2024-04-26 13:02:15 +02:00
8a850b6192 Use PHP8's constructor property promotion
Signed-off-by: Hamid Dehnavi <hamid.dev.pro@gmail.com>
2023-07-11 11:37:47 +03:30
b16aadbc0f Don't keep the session open when joining/leaving a room to reduce the chance of dirty reads
Signed-off-by: Joas Schilling <coding@schilljs.com>
2022-11-02 16:23:34 +01:00
c07251f0c6 Use PHP7.4 property typehinting where possible
Signed-off-by: Vitor Mattos <vitor@php.rio>
2022-04-06 12:43:03 -03:00
741441bbca Fix renewing the session id after password use
Signed-off-by: Joas Schilling <coding@schilljs.com>
2021-09-14 13:40:56 +02:00
918ed621d4 Regenerate session id after entering password
Signed-off-by: Roeland Jago Douma <roeland@famdouma.nl>
2021-05-19 09:27:51 +02:00
84d42604e6 Run cs:fix
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-05-12 15:04:42 +02:00
9103c99104 Fix leaving a call on logout
Signed-off-by: Joas Schilling <coding@schilljs.com>
2020-02-17 13:12:58 +01:00
edc54ea5d5 Add support for public shares to file rooms
Until now file rooms were available only to users with direct access to
the file. Now file rooms are available to any user or guest too if the
link is publicly shared (with a link share, for example).

Public shares are identified by a share token instead of a file id, so a
new endpoint, which is a counterpart of FilesController but for share
tokens, was added. The file room, however, is still associated to the
file id like before.

When checking if a participant can join a room if the current user is a
user without direct access to the file or a guest it is not even
possible to know if the file id belongs to a publicly shared file. Due
to this when the room is got for a share token the share token is stored
in the session and then used in following requests when checking whether
the participant can join a room or not.

Signed-off-by: Daniel Calviño Sánchez <danxuliu@gmail.com>
2019-09-26 10:45:01 +02:00
d4fc586f1a Bye Spreed, hello Talk!
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-09-05 14:29:09 +02:00
69ed386f02 Leave call and room when logging out
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-06-28 15:48:33 +02:00
fb90a74231 Make all classes strict
Signed-off-by: Joas Schilling <coding@schilljs.com>
2019-02-12 16:07:59 +01:00
4c498ecf4a Do not json_decode when the session returned null
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-07-27 10:46:11 +02:00
bf9d50fb03 More php7
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-07-27 10:16:44 +02:00
2d21e74252 Handle multiple sessions/passwords correctly
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-27 17:16:38 +02:00
3ec66a2044 Abstract away the session handling
Signed-off-by: Joas Schilling <coding@schilljs.com>
2018-03-27 17:16:38 +02:00