Add optional moderator codes (#2413)

* add column for moderator code

* add interface for moderator access code

* add support for write and update moderator access

* check if correct moderator_code in session

* move access code form into own component

* add support for moderator access code

* add support for moderator access code

* add copy code button for moderator code

* freeze all the things

* add tests for moderator access code

* add helpfer for moderator_access setting

* add setting for moderator access code

* show setting for moderator access code

* add checks for moderator code setting

* use method from room controller for moderator password check

* add tests for login with moderator access code

* add check for moderator code setting

* check if moderator codes are enabled in settings

* only display form for moderator code if enabled in settings

* add newline at end of file

* make check for moderator code available as helper

* align style of join button and access code button

* add localization for moderator codes

* add field for moderator codes

* add field for moderator access code to rooms

* fixes for rubocop

* fix LineLenghts for rubocop

* fix double space

Co-authored-by: Ahmad Farhat <ahmad.af.farhat@gmail.com>
This commit is contained in:
zechmeister
2021-03-14 19:24:30 +01:00
committed by GitHub
parent 4cd41f5aa8
commit 9dc59b1211
19 changed files with 447 additions and 174 deletions

View File

@ -111,6 +111,11 @@ en:
shared_access:
info: Setting to disabled will remove the button from the Room options dropdown, preventing users from sharing rooms
title: Allow Users to Share Rooms
moderator_codes:
info: "With valid moderator codes, users can join a room as a moderator without having to create an account and receive access individually. The setting can be made separately for each room."
title: Enables the generation of moderator codes
enabled: Enabled
disabled: Disabled
subtitle: Customize Greenlight
tabs:
appearance: Appearance
@ -391,7 +396,9 @@ en:
title: Create New Role
create_room:
access_code: Access Code
moderator_access_code: Moderator Code
access_code_placeholder: Generate an optional room access code
moderator_access_code_placeholder: Generate an optional code for moderators
auto_join: Automatically join me into the room
create: Create Room
free_delete: You will be free to delete this room at any time.
@ -544,6 +551,7 @@ en:
access_code_required: Please enter a valid access code to join the room
add_presentation: Add Presentation
copy_access: Copy Access Code
copy_moderator_access: Copy Moderator Code
create_room: Create a Room
create_room_error: There was an error creating the room
create_room_success: Room created successfully
@ -552,6 +560,8 @@ en:
success: Room deleted successfully
fail: Failed to delete room (%{error})
enter_the_access_code: Enter the room's access code
enter_the_moderator_access_code: Enter the room's moderator code!
optional_moderator_access_code: "Optional Moderator Code:"
invalid_provider: You have entered an invalid url. Please check the url and try again.
invitation_description: You have been invited to join %{name} using BigBlueButton. To join, click the link above and enter your name.
invited: You have been invited to join