소스 검색

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

Mustafa Arici 8 년 전
부모
커밋
788c694485
1개의 변경된 파일2개의 추가작업 그리고 0개의 파일을 삭제
  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")