08/07/23 - 20h
parent
ff461ba20a
commit
890d977dbe
|
@ -31,6 +31,8 @@ import LinkedInIcon from '@mui/icons-material/LinkedIn';
|
|||
import axios from "axios";
|
||||
|
||||
|
||||
import { RiMailCheckLine } from "react-icons/ri";
|
||||
|
||||
function SignUp() {
|
||||
|
||||
const url_login = process.env.REACT_APP_API_URL + "myclass/api/login/";
|
||||
|
@ -110,7 +112,7 @@ function SignUp() {
|
|||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
});
|
||||
|
||||
var mymail = document.getElementsByName("email")[0].value;
|
||||
//var mypwd = document.getElementsByName("pwd")[0].value;
|
||||
|
@ -171,7 +173,7 @@ function SignUp() {
|
|||
document.getElementsByName("pasrobot")[0].style.backgroundColor = "red";
|
||||
|
||||
alert(" Le total dans la zone 'je ne suis pas un robot' est incohérent. Recommencez svp :) !!!");
|
||||
|
||||
|
||||
return;
|
||||
}
|
||||
|
||||
|
@ -272,9 +274,9 @@ function SignUp() {
|
|||
setisconnected("true");
|
||||
setmyApimyApiMessage(result['message']);
|
||||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
|
||||
if (String(menucompte) === String("user")) {
|
||||
history.push("/Connexion-utilisateur-0");
|
||||
|
@ -317,7 +319,7 @@ function SignUp() {
|
|||
window.scrollTo({
|
||||
top: 0,
|
||||
behavior: "smooth",
|
||||
});
|
||||
});
|
||||
|
||||
if (String(menucompte) === String("user")) {
|
||||
menu_user_account()
|
||||
|
@ -446,7 +448,7 @@ function SignUp() {
|
|||
|
||||
<Button variant="outlined" onClick={menu_parter_account} className="signin_menu"
|
||||
id="partner_account" name="partner_account"
|
||||
style={{ "float": "right", "textAlign": "center" }}>Organisme de formation</Button>
|
||||
style={{ "float": "left", "textAlign": "center" }}>Organisme de formation</Button>
|
||||
|
||||
</div>
|
||||
<div className="div_row_bis">
|
||||
|
@ -460,21 +462,34 @@ function SignUp() {
|
|||
<Input type="text" placeholder="" name="telephone" />
|
||||
</FormGroup>}
|
||||
|
||||
|
||||
<FormGroup>
|
||||
<Label className="text_label">Email*</Label>
|
||||
<Input type="email" placeholder="" name="email" />
|
||||
</FormGroup>
|
||||
|
||||
<Label className="text_label"> Mot de passe</Label><br />
|
||||
<FormControl sx={{ m: 1, }} variant="outlined" size="small" className="texte_area_passwd">
|
||||
<InputLabel htmlFor="outlined-adornment-password2"></InputLabel>
|
||||
<InputLabel htmlFor="email" style={{"margin":"0px"}}>Email</InputLabel>
|
||||
<OutlinedInput
|
||||
id="email"
|
||||
name="email"
|
||||
type="email"
|
||||
|
||||
label="email"
|
||||
className="ch"
|
||||
endAdornment={
|
||||
<InputAdornment position="end">
|
||||
<RiMailCheckLine />
|
||||
|
||||
</InputAdornment>
|
||||
}
|
||||
|
||||
/>
|
||||
|
||||
</FormControl>
|
||||
<br />
|
||||
<FormControl sx={{ m: 1, }} variant="outlined" size="small" className="texte_area_passwd">
|
||||
<InputLabel htmlFor="new_pwd" style={{"margin":"0px"}}>Mot de passe</InputLabel>
|
||||
<OutlinedInput
|
||||
id="new_pwd"
|
||||
name="new_pwd"
|
||||
type={values.showPassword ? 'text' : 'password'}
|
||||
value={values.password2}
|
||||
label={"P"}
|
||||
label="Mot de passe"
|
||||
onChange={handleChange2('password2')}
|
||||
className="ch"
|
||||
endAdornment={
|
||||
|
@ -483,6 +498,7 @@ function SignUp() {
|
|||
aria-label="toggle password visibility"
|
||||
onClick={handleClickShowPassword_new_pwd}
|
||||
edge="end"
|
||||
|
||||
>
|
||||
{newpawdvisible ? <Visibility /> : <VisibilityOff />}
|
||||
</IconButton>
|
||||
|
@ -490,9 +506,10 @@ function SignUp() {
|
|||
}
|
||||
|
||||
/>
|
||||
|
||||
</FormControl>
|
||||
<br />
|
||||
<Label className="text_label"> Confirmer mot de passe </Label><br />
|
||||
{/*<Label className="text_label"> Confirmer mot de passe </Label><br />
|
||||
|
||||
<FormControl sx={{ m: 1, }} variant="standard" size="small" className="texte_area_passwd">
|
||||
|
||||
|
@ -518,13 +535,40 @@ function SignUp() {
|
|||
}
|
||||
label=" "
|
||||
/>
|
||||
</FormControl>*/}
|
||||
|
||||
<FormControl sx={{ m: 1, }} variant="outlined" size="small" className="texte_area_passwd">
|
||||
<InputLabel htmlFor="new_pwd_conf" style={{"margin":"0px"}}>Confirmer mot de passe</InputLabel>
|
||||
<OutlinedInput
|
||||
id="new_pwd_conf"
|
||||
name="new_pwd_conf"
|
||||
type={values.showPassword ? 'text' : 'password'}
|
||||
value={values.password2}
|
||||
label="Confirmer mot de passe"
|
||||
onChange={handleChange2('password2')}
|
||||
className="ch"
|
||||
endAdornment={
|
||||
<InputAdornment position="end">
|
||||
<IconButton
|
||||
aria-label="toggle password visibility"
|
||||
onClick={handleClickShowPassword_new_pwd_conf}
|
||||
onMouseDown={handleMouseDownPassword}
|
||||
edge="end"
|
||||
>
|
||||
{confpwdvisible ? <Visibility /> : <VisibilityOff />}
|
||||
</IconButton>
|
||||
</InputAdornment>
|
||||
}
|
||||
|
||||
/>
|
||||
|
||||
</FormControl>
|
||||
<br />
|
||||
<div className="text_pwd_crit">
|
||||
Créez un mot de passe contenant au moins :
|
||||
<ul>
|
||||
<li name="caractere">
|
||||
8 caractères
|
||||
8 caractères
|
||||
</li>
|
||||
<li name="nombre">
|
||||
1 nombre
|
||||
|
|
Loading…
Reference in New Issue