Skip to content
GitLab
Explore
Sign in
Register
Primary navigation
Search or go to…
Project
G
Géocontrib Frontend
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Redmine
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Deploy
Releases
Package registry
Container Registry
Model registry
Operate
Terraform modules
Analyze
Contributor analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
Community forum
Contribute to GitLab
Provide feedback
Keyboard shortcuts
?
Snippets
Groups
Projects
Show more breadcrumbs
GéoContrib
Géocontrib Frontend
Commits
33667e48
Commit
33667e48
authored
1 month ago
by
Timothee P
Browse files
Options
Downloads
Patches
Plain Diff
fix(signup):ajout à un groupe OGS, contact mail en clair et suppression logout
parent
e59ff2d5
No related branches found
No related tags found
1 merge request
!872
REDMINE_ISSUE-25582 | Mise en place d’un système de vérification lors de la création d’un compte utilisateur
Changes
3
Hide whitespace changes
Inline
Side-by-side
Showing
3 changed files
package.json
+1
-1
1 addition, 1 deletion
package.json
src/main.js
+0
-1
0 additions, 1 deletion
src/main.js
src/views/Login.vue
+9
-4
9 additions, 4 deletions
src/views/Login.vue
with
10 additions
and
6 deletions
package.json
+
1
−
1
View file @
33667e48
{
{
"name"
:
"geocontrib-frontend"
,
"name"
:
"geocontrib-frontend"
,
"version"
:
"6.4.5-rc
4
"
,
"version"
:
"6.4.5-rc
5
"
,
"private"
:
true
,
"private"
:
true
,
"scripts"
:
{
"scripts"
:
{
"serve"
:
"npm run init-proxy & npm run init-serve"
,
"serve"
:
"npm run init-proxy & npm run init-serve"
,
...
...
This diff is collapsed.
Click to expand it.
src/main.js
+
0
−
1
View file @
33667e48
...
@@ -105,7 +105,6 @@ const updateOnlineStatus = () => {
...
@@ -105,7 +105,6 @@ const updateOnlineStatus = () => {
* Regularly updates the user status if using external auth to keep the frontend updated with backend.
* Regularly updates the user status if using external auth to keep the frontend updated with backend.
*/
*/
function
handleLogout
()
{
function
handleLogout
()
{
store
.
dispatch
(
'
LOGOUT
'
);
if
(
store
.
state
.
user
)
{
if
(
store
.
state
.
user
)
{
store
.
commit
(
'
SET_USER
'
,
false
);
store
.
commit
(
'
SET_USER
'
,
false
);
store
.
commit
(
'
SET_USER_PERMISSIONS
'
,
null
);
store
.
commit
(
'
SET_USER_PERMISSIONS
'
,
null
);
...
...
This diff is collapsed.
Click to expand it.
src/views/Login.vue
+
9
−
4
View file @
33667e48
...
@@ -216,8 +216,8 @@
...
@@ -216,8 +216,8 @@
:placeholder=
"'Sélectionez un ou plusieurs groupe de la liste ...'"
:placeholder=
"'Sélectionez un ou plusieurs groupe de la liste ...'"
/>
/>
<p
v-if=
"adminMail"
>
<p
v-if=
"adminMail"
>
Si le groupe d'utilisateurs recherché n'apparaît pas, vous pouvez demander à
un
Si le groupe d'utilisateurs recherché n'apparaît pas, vous pouvez demander à
<a
:href=
"'mailto:'+adminMail"
>
admin
istrateur
</a>
de le créer
<a
:href=
"'mailto:'+adminMail"
>
{{
admin
Mail
}}
</a>
de le créer
</p>
</p>
</div>
</div>
...
@@ -394,9 +394,14 @@ export default {
...
@@ -394,9 +394,14 @@ export default {
// Étape 1 : Création de l'utilisateur auprès du service d'authentification SSO si nécessaire
// Étape 1 : Création de l'utilisateur auprès du service d'authentification SSO si nécessaire
if
(
this
.
ssoSignupUrl
)
{
if
(
this
.
ssoSignupUrl
)
{
const
ssoResponse
=
await
userAPI
.
signup
(
this
.
signupForm
,
this
.
ssoSignupUrl
);
const
ssoResponse
=
await
userAPI
.
signup
({
...
this
.
signupForm
,
// Ajout du label personnalisé pour affichage plus précis dans admin OGS
"
comments
"
:
`{"
${
this
.
commentsFieldLabel
}
":"
${
this
.
signupForm
.
comments
}
"}`
,
// Pour permettre la visualisation dans OGS Maps, l'utilisateur doit être ajouté à un groupe OGS, mis en dur pour aller vite pour l'instant
"
usergroup_roles
"
:[{
"
organisation
"
:{
"
id
"
:
1
}}]
},
this
.
ssoSignupUrl
);
console
.
log
(
ssoResponse
);
if
(
ssoResponse
.
status
!==
201
)
{
if
(
ssoResponse
.
status
!==
201
)
{
if
(
ssoResponse
.
status
===
400
)
{
if
(
ssoResponse
.
status
===
400
)
{
this
.
errors
.
global
=
'
Un compte associé à ce courriel existe déjà
'
;
this
.
errors
.
global
=
'
Un compte associé à ce courriel existe déjà
'
;
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment