Create the certificate store if it does not exist
This commit is contained in:
@@ -79,7 +79,7 @@ func login(rw *gmi.ResponseWriter, req *gmi.Request) {
|
||||
sessions[fingerprint] = &session{
|
||||
username: username,
|
||||
}
|
||||
gmi.Redirect(rw, req, "/login#password")
|
||||
gmi.Redirect(rw, req, "/login/password")
|
||||
})
|
||||
})
|
||||
}
|
||||
|
||||
@@ -48,8 +48,6 @@ func init() {
|
||||
}
|
||||
return err
|
||||
}
|
||||
|
||||
client.CertificateStore = gmi.CertificateStore{}
|
||||
client.GetCertificate = func(hostname string, store gmi.CertificateStore) *tls.Certificate {
|
||||
// If the certificate is in the store, return it
|
||||
if cert, ok := store[hostname]; ok {
|
||||
|
||||
Reference in New Issue
Block a user