Warn on Access Token reveal
Signed-off-by: Resynth <resynth1943@tutanota.com>
This commit is contained in:
parent
d5e9d5306a
commit
e33f4ba9c0
2 changed files with 52 additions and 1 deletions
39
src/components/views/dialogs/AccessTokenDialog.tsx
Normal file
39
src/components/views/dialogs/AccessTokenDialog.tsx
Normal file
|
@ -0,0 +1,39 @@
|
|||
/*
|
||||
Copyright 2017 Vector Creations Ltd
|
||||
|
||||
Licensed under the Apache License, Version 2.0 (the "License");
|
||||
you may not use this file except in compliance with the License.
|
||||
You may obtain a copy of the License at
|
||||
|
||||
http://www.apache.org/licenses/LICENSE-2.0
|
||||
|
||||
Unless required by applicable law or agreed to in writing, software
|
||||
distributed under the License is distributed on an "AS IS" BASIS,
|
||||
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
|
||||
See the License for the specific language governing permissions and
|
||||
limitations under the License.
|
||||
*/
|
||||
|
||||
import React from 'react';
|
||||
import { _t } from '../../../languageHandler';
|
||||
import QuestionDialog from './QuestionDialog';
|
||||
|
||||
type IProps = Exclude<
|
||||
React.ComponentProps<QuestionDialog>,
|
||||
"title" | "danger" | "description"
|
||||
>;
|
||||
|
||||
export default function AccessTokenDialog (props: IProps) {
|
||||
return (
|
||||
<QuestionDialog
|
||||
{...props}
|
||||
title="Reveal Access Token"
|
||||
danger={true}
|
||||
description={_t(
|
||||
"Do not reveal your Access Token to anyone, under any circumstances. " +
|
||||
"Sharing your Access Token with someone would allow them to login to " +
|
||||
"your account, and access your private information."
|
||||
)}
|
||||
></QuestionDialog>
|
||||
);
|
||||
}
|
Loading…
Add table
Add a link
Reference in a new issue