mirror of
https://github.com/goharbor/harbor.git
synced 2024-11-26 20:26:13 +01:00
remove the id in the post body when to create a robot account
Signed-off-by: wang yan <wangyan@vmware.com>
This commit is contained in:
parent
d8b76c482a
commit
a4b202d656
@ -65,7 +65,6 @@ func (rq *RobotReq) Valid(v *validation.Validation) {
|
||||
|
||||
// RobotRep ...
|
||||
type RobotRep struct {
|
||||
ID int64 `json:"id"`
|
||||
Name string `json:"name"`
|
||||
Token string `json:"token"`
|
||||
}
|
||||
|
@ -158,7 +158,6 @@ func (r *RobotAPI) Post() {
|
||||
}
|
||||
|
||||
robotRep := models.RobotRep{
|
||||
ID: id,
|
||||
Name: robot.Name,
|
||||
Token: rawTk,
|
||||
}
|
||||
|
Loading…
Reference in New Issue
Block a user