[PD2] Relatorio inicio
Co-authored-by: tsousa111 <tiagao2001@hotmail.com>
This commit is contained in:
parent
6f8219d991
commit
b86992a10a
10 changed files with 192 additions and 289 deletions
|
@ -137,7 +137,7 @@ func Run() {
|
|||
os.Exit(1)
|
||||
}
|
||||
|
||||
err := registerUser(myUID, password, clientKeyStore)
|
||||
err := registerUser(password, clientKeyStore)
|
||||
if err != nil {
|
||||
printError(err.Error())
|
||||
os.Exit(1)
|
||||
|
@ -188,8 +188,8 @@ func getHTTPClient(tlsConfig *tls.Config) *http.Client {
|
|||
return &http.Client{Transport: transport}
|
||||
}
|
||||
|
||||
func registerUser(userId string, password string, clientKeyStore cryptoUtils.KeyStore) error {
|
||||
postRegister := protocol.NewPostRegister(userId, password, clientKeyStore.GetCert().Raw)
|
||||
func registerUser(password string, clientKeyStore cryptoUtils.KeyStore) error {
|
||||
postRegister := protocol.NewPostRegister(password, clientKeyStore.GetCert().Raw)
|
||||
|
||||
jsonData, err := json.Marshal(postRegister)
|
||||
if err != nil {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue