08/07/23 - 20h
parent
ff461ba20a
commit
890d977dbe
|
@ -31,6 +31,8 @@ import LinkedInIcon from '@mui/icons-material/LinkedIn';
|
||||||
import axios from "axios";
|
import axios from "axios";
|
||||||
|
|
||||||
|
|
||||||
|
import { RiMailCheckLine } from "react-icons/ri";
|
||||||
|
|
||||||
function SignUp() {
|
function SignUp() {
|
||||||
|
|
||||||
const url_login = process.env.REACT_APP_API_URL + "myclass/api/login/";
|
const url_login = process.env.REACT_APP_API_URL + "myclass/api/login/";
|
||||||
|
@ -110,7 +112,7 @@ function SignUp() {
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
top: 0,
|
top: 0,
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
});
|
});
|
||||||
|
|
||||||
var mymail = document.getElementsByName("email")[0].value;
|
var mymail = document.getElementsByName("email")[0].value;
|
||||||
//var mypwd = document.getElementsByName("pwd")[0].value;
|
//var mypwd = document.getElementsByName("pwd")[0].value;
|
||||||
|
@ -272,9 +274,9 @@ function SignUp() {
|
||||||
setisconnected("true");
|
setisconnected("true");
|
||||||
setmyApimyApiMessage(result['message']);
|
setmyApimyApiMessage(result['message']);
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
top: 0,
|
top: 0,
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (String(menucompte) === String("user")) {
|
if (String(menucompte) === String("user")) {
|
||||||
history.push("/Connexion-utilisateur-0");
|
history.push("/Connexion-utilisateur-0");
|
||||||
|
@ -317,7 +319,7 @@ function SignUp() {
|
||||||
window.scrollTo({
|
window.scrollTo({
|
||||||
top: 0,
|
top: 0,
|
||||||
behavior: "smooth",
|
behavior: "smooth",
|
||||||
});
|
});
|
||||||
|
|
||||||
if (String(menucompte) === String("user")) {
|
if (String(menucompte) === String("user")) {
|
||||||
menu_user_account()
|
menu_user_account()
|
||||||
|
@ -446,7 +448,7 @@ function SignUp() {
|
||||||
|
|
||||||
<Button variant="outlined" onClick={menu_parter_account} className="signin_menu"
|
<Button variant="outlined" onClick={menu_parter_account} className="signin_menu"
|
||||||
id="partner_account" name="partner_account"
|
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>
|
||||||
<div className="div_row_bis">
|
<div className="div_row_bis">
|
||||||
|
@ -460,21 +462,34 @@ function SignUp() {
|
||||||
<Input type="text" placeholder="" name="telephone" />
|
<Input type="text" placeholder="" name="telephone" />
|
||||||
</FormGroup>}
|
</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">
|
<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
|
<OutlinedInput
|
||||||
id="new_pwd"
|
id="new_pwd"
|
||||||
name="new_pwd"
|
name="new_pwd"
|
||||||
type={values.showPassword ? 'text' : 'password'}
|
type={values.showPassword ? 'text' : 'password'}
|
||||||
value={values.password2}
|
value={values.password2}
|
||||||
label={"P"}
|
label="Mot de passe"
|
||||||
onChange={handleChange2('password2')}
|
onChange={handleChange2('password2')}
|
||||||
className="ch"
|
className="ch"
|
||||||
endAdornment={
|
endAdornment={
|
||||||
|
@ -483,6 +498,7 @@ function SignUp() {
|
||||||
aria-label="toggle password visibility"
|
aria-label="toggle password visibility"
|
||||||
onClick={handleClickShowPassword_new_pwd}
|
onClick={handleClickShowPassword_new_pwd}
|
||||||
edge="end"
|
edge="end"
|
||||||
|
|
||||||
>
|
>
|
||||||
{newpawdvisible ? <Visibility /> : <VisibilityOff />}
|
{newpawdvisible ? <Visibility /> : <VisibilityOff />}
|
||||||
</IconButton>
|
</IconButton>
|
||||||
|
@ -490,9 +506,10 @@ function SignUp() {
|
||||||
}
|
}
|
||||||
|
|
||||||
/>
|
/>
|
||||||
|
|
||||||
</FormControl>
|
</FormControl>
|
||||||
<br />
|
<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">
|
<FormControl sx={{ m: 1, }} variant="standard" size="small" className="texte_area_passwd">
|
||||||
|
|
||||||
|
@ -518,6 +535,33 @@ function SignUp() {
|
||||||
}
|
}
|
||||||
label=" "
|
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>
|
</FormControl>
|
||||||
<br />
|
<br />
|
||||||
<div className="text_pwd_crit">
|
<div className="text_pwd_crit">
|
||||||
|
|
Loading…
Reference in New Issue