Require authentication to participate in chat (#4762)
* feat(chat): require authentication to participate in chat * fix: it's pretty much impossible to bypass the auth requirement, addressing review feedback anyway * feat(chat): render chat text input as disabled if chat auth is required * Commit updated API documentation --------- Co-authored-by: Owncast <owncast@owncast.online>
This commit is contained in:
@@ -618,6 +618,22 @@ export const ChatDisabled = {
|
||||
},
|
||||
};
|
||||
|
||||
export const AuthenticationRequired = {
|
||||
render: Template,
|
||||
|
||||
args: {
|
||||
loading: false,
|
||||
messages,
|
||||
usernameToHighlight: 'testuser',
|
||||
chatUserId: 'testuser',
|
||||
isModerator: false,
|
||||
showInput: true,
|
||||
chatAvailable: true,
|
||||
inputEnabled: false,
|
||||
inputDisabledPlaceholder: 'Authenticate to chat',
|
||||
},
|
||||
};
|
||||
|
||||
export const SingleMessage = {
|
||||
render: Template,
|
||||
|
||||
|
||||
Reference in New Issue
Block a user