Compare commits

..

No commits in common. "8517e9824c1263295fac870773612fc8e0e0398d" and "e7deba52e98ded5000fc2efade25414555f3d6a3" have entirely different histories.

2 changed files with 3 additions and 6 deletions

View File

@ -331,7 +331,7 @@ public class MembreService {
return update(repository.findById(id)
.call(__ -> repository.count("email LIKE ?1 AND id != ?2", membre.getEmail(), id)
.invoke(Unchecked.consumer(c -> {
if (c > 0 && !membre.getEmail().isBlank())
if (c > 0)
throw new DBadRequestException("Email déjà utiliser");
})))
.chain(membreModel -> clubRepository.findById(membre.getClub())
@ -353,7 +353,7 @@ public class MembreService {
return update(repository.findById(id)
.call(__ -> repository.count("email LIKE ?1 AND id != ?2", membre.getEmail(), id)
.invoke(Unchecked.consumer(c -> {
if (c > 0 && !membre.getEmail().isBlank())
if (c > 0)
throw new DBadRequestException("Email déjà utiliser");
})))
.invoke(Unchecked.consumer(membreModel -> {

View File

@ -9,11 +9,8 @@ export function check_validity(online_callback = () => {
axios.get(`${vite_url}/api/auth/userinfo`).then(data => {
online_callback({state: true, userinfo: data.data});
})
}else{
online_callback({state: false});
}
}).catch(() => {
console.log("=> Not authenticated");
online_callback({state: false});
})
}
@ -35,4 +32,4 @@ export function login_redirect() {
export function logout() {
window.location.href = `${vite_url}/api/logout`;
}
}