Răsfoiți Sursa

doc(user): improve wording of u.Renew method docstring

Mustafa Arici 8 ani în urmă
părinte
comite
788c694485
1 a modificat fișierele cu 2 adăugiri și 0 ștergeri
  1. 2 0
      user.go

+ 2 - 0
user.go

@@ -244,6 +244,8 @@ func (u *DBUser) ResetPassword(password string) error {
 //
 // This is often used to sign users when the current CA is changed while there are
 // still  existing users in the database.
+//
+// Also it can be used when a user cert is expired or user's private key stolen, missing etc.
 func (u *DBUser) Renew() error {
 	if !IsInitialized() {
 		return fmt.Errorf("you first need to create server")