Projet

Général

Profil

0001-csv_import-document-registration-email-option-41292.patch

Valentin Deniaud, 09 avril 2020 18:37

Télécharger (1,83 ko)

Voir les différences:

Subject: [PATCH] csv_import: document @registration email option (#41292)

 .../authentic2/manager/user_imports.html         | 16 ++++++++++++++++
 1 file changed, 16 insertions(+)
src/authentic2/manager/templates/authentic2/manager/user_imports.html
207 207
        </tr>
208 208
      </tbody>
209 209
    </table>
210
    <h4 id="help-external-identifier">{% trans "Registration options" %}</h4>
211
    <p>
212
      {% blocktrans trimmed %}
213
      When a user is first created, an email can be sent so they can set their password by using the
214
      special column <var>@registration</var> with the value <var>send-email</var>.
215
      {% endblocktrans %}
216
    </p>
210 217
    <h4>{% trans "Examples" %}</h4>
211 218
    <p>{% blocktrans trimmed %}Importing first and last name of users keyed by email{% endblocktrans %}</p>
212 219
    <blockquote>
......
232 239
      <pre>email key,first_name,last_name,_role_name
233 240
john.doe@example.com,John,Doe,Role1
234 241
john.doe@example.com,John,Doe,Role2
242
</pre>
243
    </blockquote>
244
    <p>{% blocktrans trimmed %}Importing email, first and last name of users
245
    and sending a password reset email to John (only if the account is created
246
    by the import).{% endblocktrans %}</p>
247
    <blockquote>
248
      <pre>email key,first_name,last_name,@registration
249
john.doe@example.com,John,Doe,send-email
250
jane.doe@example.com,Jane,Doe,
235 251
</pre>
236 252
    </blockquote>
237 253
  </div>
238
-