aboutsummaryrefslogtreecommitdiff
path: root/modern/src/settings/UserPage.js
diff options
context:
space:
mode:
authorAnton Tananaev <anton@traccar.org>2022-08-02 19:16:10 -0700
committerAnton Tananaev <anton@traccar.org>2022-08-02 19:16:10 -0700
commitb2dd52831a19cae8d6d46ee1733bde02ad4ca08b (patch)
treef27b33610a5cca126e2c2df6a40df5c537ddbbdc /modern/src/settings/UserPage.js
parent114c78dff8fbfdc19444c88fea45188012065a3a (diff)
downloadtrackermap-web-b2dd52831a19cae8d6d46ee1733bde02ad4ca08b.tar.gz
trackermap-web-b2dd52831a19cae8d6d46ee1733bde02ad4ca08b.tar.bz2
trackermap-web-b2dd52831a19cae8d6d46ee1733bde02ad4ca08b.zip
New API token system
Diffstat (limited to 'modern/src/settings/UserPage.js')
-rw-r--r--modern/src/settings/UserPage.js27
1 files changed, 1 insertions, 26 deletions
diff --git a/modern/src/settings/UserPage.js b/modern/src/settings/UserPage.js
index 85f4ae34..4dc6be95 100644
--- a/modern/src/settings/UserPage.js
+++ b/modern/src/settings/UserPage.js
@@ -11,16 +11,12 @@ import {
MenuItem,
FormControlLabel,
Checkbox,
- InputAdornment,
- IconButton,
- OutlinedInput,
FormGroup,
TextField,
Button,
} from '@mui/material';
import makeStyles from '@mui/styles/makeStyles';
import ExpandMoreIcon from '@mui/icons-material/ExpandMore';
-import CachedIcon from '@mui/icons-material/Cached';
import DeleteForeverIcon from '@mui/icons-material/DeleteForever';
import { useDispatch, useSelector } from 'react-redux';
import moment from 'moment';
@@ -263,28 +259,7 @@ const UserPage = () => {
</Typography>
</AccordionSummary>
<AccordionDetails className={classes.details}>
- <FormControl>
- <InputLabel>{t('userToken')}</InputLabel>
- <OutlinedInput
- type="text"
- label={t('userToken')}
- value={item.token || ''}
- onChange={(e) => setItem({ ...item, token: e.target.value })}
- endAdornment={(
- <InputAdornment position="end">
- <IconButton
- size="small"
- onClick={() => {
- const token = [...Array(30)].map(() => Math.random().toString(36)[2]).join('');
- setItem({ ...item, token });
- }}
- >
- <CachedIcon fontSize="small" />
- </IconButton>
- </InputAdornment>
- )}
- />
- </FormControl>
+ token
<TextField
label={t('userExpirationTime')}
type="date"