standalone: use Password field type not Text for password
authorRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Fri, 29 Sep 2023 08:05:46 +0000 (09:05 +0100)
committerRich Lott / Artful Robot <code.commits@artfulrobot.uk>
Fri, 29 Sep 2023 08:05:46 +0000 (09:05 +0100)
ext/standaloneusers/Civi/Api4/Service/Spec/Provider/UserSpecProvider.php

index e699055ef7402db8e5ffab6c72925e37b22f654d..486fa97f871ec198ade27546eb7e4733d2a799ff 100644 (file)
@@ -28,7 +28,7 @@ class UserSpecProvider extends \Civi\Core\Service\AutoService implements Generic
     $password = new FieldSpec('password', 'User', 'String');
     $password->setTitle(ts('New password'));
     $password->setDescription('Provide a new password for this user.');
-    $password->setInputType('Text');
+    $password->setInputType('Password');
     $spec->addFieldSpec($password);
   }