mirror of
https://github.com/coder/coder.git
synced 2026-09-24 15:04:27 +08:00
feat: enable key rotation (#15066)
This PR contains the remaining logic necessary to hook up key rotation to the product.
This commit is contained in:
@@ -124,9 +124,9 @@ func (r Request) Normalize() Request {
|
||||
return req
|
||||
}
|
||||
|
||||
// Validate ensures the request is correct and contains the necessary
|
||||
// Check ensures the request is correct and contains the necessary
|
||||
// parameters.
|
||||
func (r Request) Validate() error {
|
||||
func (r Request) Check() error {
|
||||
switch r.AccessMethod {
|
||||
case AccessMethodPath, AccessMethodSubdomain, AccessMethodTerminal:
|
||||
default:
|
||||
|
||||
Reference in New Issue
Block a user