Skip to content
GitLab
Projects
Groups
Snippets
/
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in
Toggle navigation
Menu
Open sidebar
IRMA
Github mirrors
irmago
Commits
a5a9b646
Commit
a5a9b646
authored
Mar 02, 2019
by
Sietse Ringers
Browse files
Fix email post url
parent
4a9c1dc2
Pipeline
#19589
failed with stages
in 2 minutes and 20 seconds
Changes
1
Pipelines
1
Hide whitespace changes
Inline
Side-by-side
internal/servercore/api.go
View file @
a5a9b646
...
...
@@ -149,10 +149,10 @@ func (s *Server) verifyConfiguration(configuration *server.Configuration) error
if
!
strings
.
Contains
(
s
.
conf
.
Email
,
"@"
)
||
strings
.
Contains
(
s
.
conf
.
Email
,
"
\n
"
)
{
return
server
.
LogError
(
errors
.
New
(
"Invalid email address specified"
))
}
t
:=
irma
.
NewHTTPTransport
(
"https://metrics.privacybydesign.foundation/history
/email
"
)
t
:=
irma
.
NewHTTPTransport
(
"https://metrics.privacybydesign.foundation/history"
)
t
.
SetHeader
(
"User-Agent"
,
"irmaserver"
)
var
x
string
_
=
t
.
Post
(
""
,
&
x
,
s
.
conf
.
Email
)
_
=
t
.
Post
(
"
email
"
,
&
x
,
s
.
conf
.
Email
)
}
return
nil
...
...
Write
Preview
Supports
Markdown
0%
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!
Cancel
Please
register
or
sign in
to comment