]> git.proxmox.com Git - ceph.git/blobdiff - ceph/src/pybind/mgr/dashboard/frontend/src/app/core/auth/user-form/user-form.component.html
import 15.2.5
[ceph.git] / ceph / src / pybind / mgr / dashboard / frontend / src / app / core / auth / user-form / user-form.component.html
index 78b12deebe73da1d9f2b42c681dba6ccfa15f948..59f32c9cbe689ab446221978175e6de059fddcfe 100644 (file)
@@ -36,7 +36,8 @@
         </div>
 
         <!-- Password -->
-        <div class="form-group row">
+        <div class="form-group row"
+             *ngIf="!authStorageService.isSSO()">
           <label class="cd-col-form-label"
                  for="password">
             <ng-container i18n>Password</ng-container>
@@ -78,7 +79,8 @@
         </div>
 
         <!-- Confirm password -->
-        <div class="form-group row">
+        <div class="form-group row"
+             *ngIf="!authStorageService.isSSO()">
           <label i18n
                  class="cd-col-form-label"
                  for="confirmpassword">Confirm password</label>
                         cdPasswordButton="confirmpassword">
                 </button>
               </span>
+              <span class="invalid-feedback"
+                    *ngIf="userForm.showError('confirmpassword', formDir, 'match')"
+                    i18n>Password confirmation doesn't match the password.</span>
             </div>
             <span class="invalid-feedback"
                   *ngIf="userForm.showError('confirmpassword', formDir, 'required')"
                   i18n>This field is required.</span>
-            <span class="invalid-feedback"
-                  *ngIf="userForm.showError('confirmpassword', formDir, 'match')"
-                  i18n>Password confirmation doesn't match the password.</span>
           </div>
         </div>