Skip to content
GitLab
Explorer
Connexion
S'inscrire
Navigation principale
Rechercher ou aller à…
Projet
P
parlote-facil
Gestion
Activité
Membres
Labels
Programmation
Tickets
Tableaux des tickets
Jalons
Wiki
Code
Requêtes de fusion
Dépôt
Branches
Validations
Étiquettes
Graphe du dépôt
Comparer les révisions
Extraits de code
Compilation
Pipelines
Jobs
Planifications de pipeline
Artéfacts
Déploiement
Releases
Registre de paquets
Registre de conteneur
Registre de modèles
Opération
Environnements
Modules Terraform
Surveillance
Incidents
Analyse
Données d'analyse des chaînes de valeur
Analyse des contributeurs
Données d'analyse CI/CD
Données d'analyse du dépôt
Expériences du modèle
Aide
Aide
Support
Documentation de GitLab
Comparer les forfaits GitLab
Forum de la communauté
Contribuer à GitLab
Donner votre avis
Raccourcis clavier
?
Extraits de code
Groupes
Projets
Afficher davantage de fils d'Ariane
facil
parlote-facil
Validations
b9ab7995
Valider
b9ab7995
rédigé
il y a 14 ans
par
maxwell
Parcourir les fichiers
Options
Téléchargements
Correctifs
Plain Diff
ironing out invites
parent
b300adbe
Aucune branche associée trouvée
Aucune étiquette associée trouvée
Aucune requête de fusion associée trouvée
Modifications
3
Masquer les modifications d'espaces
En ligne
Côte à côte
Affichage de
3 fichiers modifiés
app/controllers/invitations_controller.rb
+0
-1
0 ajout, 1 suppression
app/controllers/invitations_controller.rb
app/models/user.rb
+3
-1
3 ajouts, 1 suppression
app/models/user.rb
app/views/invitations/edit.html.haml
+1
-0
1 ajout, 0 suppression
app/views/invitations/edit.html.haml
avec
4 ajouts
et
2 suppressions
app/controllers/invitations_controller.rb
+
0
−
1
Voir le fichier @
b9ab7995
...
@@ -37,7 +37,6 @@ class InvitationsController < Devise::InvitationsController
...
@@ -37,7 +37,6 @@ class InvitationsController < Devise::InvitationsController
raise
"Invalid Invite Token"
raise
"Invalid Invite Token"
end
end
user
=
User
.
find_by_invitation_token
(
params
[
:user
][
:invitation_token
])
user
=
User
.
find_by_invitation_token
(
params
[
:user
][
:invitation_token
])
puts
user
.
inspect
user
.
seed_aspects
user
.
seed_aspects
user
.
accept_invitation!
(
params
[
:user
])
user
.
accept_invitation!
(
params
[
:user
])
rescue
Exception
=>
e
rescue
Exception
=>
e
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
app/models/user.rb
+
3
−
1
Voir le fichier @
b9ab7995
...
@@ -381,7 +381,7 @@ class User
...
@@ -381,7 +381,7 @@ class User
log_string
<<
"inviter=
#{
invitations_to_me
.
first
.
from
.
diaspora_handle
}
"
if
invitations_to_me
.
first
log_string
<<
"inviter=
#{
invitations_to_me
.
first
.
from
.
diaspora_handle
}
"
if
invitations_to_me
.
first
Rails
.
logger
.
info
log_string
Rails
.
logger
.
info
log_string
self
.
setup
(
opts
)
self
.
setup
(
opts
)
puts
"foobar"
self
.
invitation_token
=
nil
self
.
invitation_token
=
nil
self
.
password
=
opts
[
:password
]
self
.
password
=
opts
[
:password
]
self
.
password_confirmation
=
opts
[
:password_confirmation
]
self
.
password_confirmation
=
opts
[
:password_confirmation
]
...
@@ -419,6 +419,8 @@ class User
...
@@ -419,6 +419,8 @@ class User
self
.
serialized_private_key
||=
User
.
generate_key
self
.
serialized_private_key
||=
User
.
generate_key
self
.
person
.
serialized_public_key
=
OpenSSL
::
PKey
::
RSA
.
new
(
self
.
serialized_private_key
).
public_key
self
.
person
.
serialized_public_key
=
OpenSSL
::
PKey
::
RSA
.
new
(
self
.
serialized_private_key
).
public_key
puts
self
.
serialized_public_key
self
self
end
end
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
app/views/invitations/edit.html.haml
+
1
−
0
Voir le fichier @
b9ab7995
...
@@ -19,6 +19,7 @@
...
@@ -19,6 +19,7 @@
%p
%p
=
f
.
label
:password_confirmation
,
t
(
'password_confirmation'
)
=
f
.
label
:password_confirmation
,
t
(
'password_confirmation'
)
=
f
.
password_field
:password_confirmation
,
:title
=>
t
(
'registrations.new.enter_password_again'
)
=
f
.
password_field
:password_confirmation
,
:title
=>
t
(
'registrations.new.enter_password_again'
)
=
f
.
hidden_field
:invitation_token
=
f
.
submit
t
(
'registrations.new.sign_up'
)
=
f
.
submit
t
(
'registrations.new.sign_up'
)
%br
%br
...
...
Ce diff est replié.
Cliquez pour l'agrandir.
Aperçu
0%
Chargement en cours
Veuillez réessayer
ou
joindre un nouveau fichier
.
Annuler
You are about to add
0
people
to the discussion. Proceed with caution.
Terminez d'abord l'édition de ce message.
Enregistrer le commentaire
Annuler
Veuillez vous
inscrire
ou vous
se connecter
pour commenter