Skip to content

Commit 6855101

Browse files
authored
feat(webhosting): use password in base64 (scaleway#2546)
1 parent 716c476 commit 6855101

File tree

1 file changed

+12
-6
lines changed

1 file changed

+12
-6
lines changed

api/webhosting/v1/webhosting_sdk.go

Lines changed: 12 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -976,7 +976,7 @@ type PlatformControlPanel struct {
976976
// Name: name of the control panel.
977977
Name string `json:"name"`
978978

979-
// URLs: URL to connect to cPanel dashboard and to Webmail interface.
979+
// URLs: URL to connect to control panel dashboard and to Webmail interface.
980980
URLs *PlatformControlPanelURLs `json:"urls"`
981981
}
982982

@@ -1074,14 +1074,17 @@ type Nameserver struct {
10741074

10751075
// HostingUser: hosting user.
10761076
type HostingUser struct {
1077-
// Username: main Web Hosting cPanel username.
1077+
// Username: main Web Hosting control panel username.
10781078
Username string `json:"username"`
10791079

1080-
// OneTimePassword: one-time-password used for the first login or reset password, empty after first use.
1081-
OneTimePassword *string `json:"one_time_password"`
1080+
// Deprecated: OneTimePassword: one-time-password used for the first login to the control panel, cleared after first use (deprecated, use password_b64 instead).
1081+
OneTimePassword *string `json:"one_time_password,omitempty"`
10821082

10831083
// ContactEmail: contact email used for the hosting.
10841084
ContactEmail string `json:"contact_email"`
1085+
1086+
// OneTimePasswordB64: one-time-password used for the first login to the control panel, cleared after first use, encoded in base64.
1087+
OneTimePasswordB64 *string `json:"one_time_password_b64"`
10851088
}
10861089

10871090
// Offer: offer.
@@ -2138,8 +2141,11 @@ type OfferAPIListOffersRequest struct {
21382141

21392142
// ResetHostingPasswordResponse: reset hosting password response.
21402143
type ResetHostingPasswordResponse struct {
2141-
// OneTimePassword: new temporary password.
2142-
OneTimePassword string `json:"one_time_password"`
2144+
// Deprecated: OneTimePassword: new temporary password (deprecated, use password_b64 instead).
2145+
OneTimePassword *string `json:"one_time_password,omitempty"`
2146+
2147+
// OneTimePasswordB64: new temporary password, encoded in base64.
2148+
OneTimePasswordB64 string `json:"one_time_password_b64"`
21432149
}
21442150

21452151
// ResourceSummary: resource summary.

0 commit comments

Comments
 (0)