mirror of
https://github.com/bettercap/bettercap
synced 2025-07-07 13:32:07 -07:00
new: disabling api.rest authentication if username or password are empty
This commit is contained in:
parent
3b6ea499dd
commit
f9656e1d1d
2 changed files with 10 additions and 8 deletions
|
@ -50,12 +50,12 @@ func NewRestAPI(s *session.Session) *RestAPI {
|
|||
|
||||
api.AddParam(session.NewStringParameter("api.rest.username",
|
||||
"",
|
||||
".+",
|
||||
"",
|
||||
"API authentication username."))
|
||||
|
||||
api.AddParam(session.NewStringParameter("api.rest.password",
|
||||
"",
|
||||
".+",
|
||||
"",
|
||||
"API authentication password."))
|
||||
|
||||
api.AddParam(session.NewStringParameter("api.rest.certificate",
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue