Add access request
This commit is contained in:
@@ -1,7 +1,9 @@
|
|||||||
import {useEffect, useState} from 'react'
|
import {useEffect, useState} from 'react'
|
||||||
import {signIn} from 'next-auth/client'
|
import {signIn} from 'next-auth/client'
|
||||||
import {useRouter} from 'next/router'
|
import {useRouter} from 'next/router'
|
||||||
|
import Link from 'next/link'
|
||||||
import {
|
import {
|
||||||
|
Box,
|
||||||
Button,
|
Button,
|
||||||
Container,
|
Container,
|
||||||
FormControl,
|
FormControl,
|
||||||
@@ -123,7 +125,7 @@ function Koneksyon() {
|
|||||||
<Button
|
<Button
|
||||||
fullWidth
|
fullWidth
|
||||||
disabled={loading || !validateEmail(credentials.username) || credentials.password === ''}
|
disabled={loading || !validateEmail(credentials.username) || credentials.password === ''}
|
||||||
style={{marginTop: 50}}
|
style={{marginTop: 40}}
|
||||||
variant='contained'
|
variant='contained'
|
||||||
color='primary'
|
color='primary'
|
||||||
onClick={handleClick}
|
onClick={handleClick}
|
||||||
@@ -135,6 +137,15 @@ function Koneksyon() {
|
|||||||
|
|
||||||
{loading && <LinearProgress size={24} style={{width: '100%', marginTop: '1em'}} />}
|
{loading && <LinearProgress size={24} style={{width: '100%', marginTop: '1em'}} />}
|
||||||
|
|
||||||
|
<Box align='center' marginTop={4}>
|
||||||
|
<Typography gutterBottom display='block' variant='h6' component='h2'>
|
||||||
|
Demande d’accès
|
||||||
|
</Typography>
|
||||||
|
<Link passHref href='mailto:kontak@o-k-i.net?subject=Accès à soumèt'>
|
||||||
|
<a style={{color: 'green', fontSize: 20}}>kontak@o-k-i.net</a>
|
||||||
|
</Link>
|
||||||
|
</Box>
|
||||||
|
|
||||||
{loginError && (
|
{loginError && (
|
||||||
<Snackbar
|
<Snackbar
|
||||||
open={open}
|
open={open}
|
||||||
|
|||||||
Reference in New Issue
Block a user