Skip to content

Commit

Permalink
Merge branch 'staging'
Browse files Browse the repository at this point in the history
  • Loading branch information
annelhote committed May 30, 2024
2 parents d90790b + 0a161ad commit e31a065
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 6 deletions.
11 changes: 6 additions & 5 deletions src/pages/se-connecter.js
Original file line number Diff line number Diff line change
@@ -1,21 +1,22 @@
import { Alert, ButtonGroup, Col, Container, Link, Row, Text, TextInput, Title } from '@dataesr/react-dsfr';
import { useState } from 'react';
import { Link as RouterLink, useNavigate } from 'react-router-dom';
import { Container, Row, Col, TextInput, Text, Link, Title, ButtonGroup, Alert, Notice } from '@dataesr/react-dsfr';

import Button from '../components/button';
import useAuth from '../hooks/useAuth';
import { MAIL_REGEXP, PASSWORD_REGEXP, OTP_REGEXP } from '../utils/auth';
import usePageTitle from '../hooks/usePageTitle';
import { MAIL_REGEXP, OTP_REGEXP, PASSWORD_REGEXP } from '../utils/auth';

export default function SignIn() {
usePageTitle('Se connecter');
const navigate = useNavigate();
const { signin } = useAuth();
const [step, setStep] = useState(1);
const [otp, setOtp] = useState('');

const [email, setEmail] = useState('');
const [password, setPassword] = useState('');
const [error, setError] = useState('');
const [otp, setOtp] = useState('');
const [password, setPassword] = useState('');
const [step, setStep] = useState(1);

const validateEmail = () => MAIL_REGEXP.test(email);
const validateOtp = () => OTP_REGEXP.test(otp);
Expand Down
2 changes: 1 addition & 1 deletion src/utils/get-links.js
Original file line number Diff line number Diff line change
Expand Up @@ -74,7 +74,7 @@ export default function getLink(el) {
linkTo = `https://www.data-asso.fr/annuaire/association/${el.value}?docFields=documentsDac,documentsRna`;
break;
case 'rnsr':
linkTo = `https://appliweb.dgri.education.fr/rnsr/PresenteStruct.jsp?numNatStruct=${el.value}&PUBLIC=OK`;
linkTo = `https://rnsr.adc.education.fr/structure/${el.value}`;
break;
case 'ror':
linkTo = `https://ror.org/${el.value}`;
Expand Down

0 comments on commit e31a065

Please sign in to comment.