File tree Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Expand file tree Collapse file tree 1 file changed +4
-4
lines changed Original file line number Diff line number Diff line change @@ -486,13 +486,13 @@ func (m *mfa) fromAuthConfig(remoteConfig v1API.AuthConfigResponse) {
486
486
}
487
487
488
488
func (s sessions ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
489
- body .SessionsTimebox = cast .Ptr (int (s .Timebox .Seconds ()))
490
- body .SessionsInactivityTimeout = cast .Ptr (int (s .InactivityTimeout .Seconds ()))
489
+ body .SessionsTimebox = cast .Ptr (int (s .Timebox .Hours ()))
490
+ body .SessionsInactivityTimeout = cast .Ptr (int (s .InactivityTimeout .Hours ()))
491
491
}
492
492
493
493
func (s * sessions ) fromAuthConfig (remoteConfig v1API.AuthConfigResponse ) {
494
- s .Timebox = time .Duration (cast .Val (remoteConfig .SessionsTimebox , 0 )) * time .Second
495
- s .InactivityTimeout = time .Duration (cast .Val (remoteConfig .SessionsInactivityTimeout , 0 )) * time .Second
494
+ s .Timebox = time .Duration (cast .Val (remoteConfig .SessionsTimebox , 0 )) * time .Hour
495
+ s .InactivityTimeout = time .Duration (cast .Val (remoteConfig .SessionsInactivityTimeout , 0 )) * time .Hour
496
496
}
497
497
498
498
func (e email ) toAuthConfigBody (body * v1API.UpdateAuthConfigBody ) {
You can’t perform that action at this time.
0 commit comments