Actions

Translations

Manage users/60/ja: Difference between revisions

From LimeSurvey Manual

(Created page with "'''注意事項:''' * このログイン方法を有効にするには、config.phpでOptional settings/ja#Use_one_time_passwords|<code>$use_one_time_passwords = false;</cod...")
 
No edit summary
 
Line 1: Line 1:
'''注意事項:'''
'''注意事項:'''
* このログイン方法を有効にするには、config.phpで[[Optional settings/ja#Use_one_time_passwords|<code>$use_one_time_passwords = false;</code>]]の行を<code>true</code>に設定する必要があります(既定値は'false'です)。
* このログイン方法を有効にするには、config.phpで[[Optional settings/ja#Use_one_time_passwords|<code>'use_one_time_passwords' => true;</code>]]を追加する必要があります(既定値は'false'です)。
* 渡されたユーザー名は、LimeSurveyの''ユーザー''テーブルになければなりません。
* 渡されたユーザー名は、LimeSurveyの''ユーザー''テーブルになければなりません。
* ワンタイムパスワード(外部アプリケーション経由で設定可能)は、''ユーザー''テーブルの''one_time_pw''列に[https://secure.php.net/manual/en/function.md5.php MD5ハッシュ]として格納する必要があります。
* ワンタイムパスワード(外部アプリケーション経由で設定可能)は、''ユーザー''テーブルの''one_time_pw''列に[https://secure.php.net/manual/en/function.md5.php MD5ハッシュ]として格納する必要があります。
* (これは "両方のパスワードが一致する必要がある"を除いて無視する必要があります)渡されたプレーンテキストのパスワードはsha256関数を使用してハッシュされ、''ユーザー''テーブルの''one_time_pw''列に格納されたハッシュと比較されます。両方のパスワードが一致する必要があります。
* 渡されたプレーンテキストのパスワードはsha256関数を使用してハッシュされ、''ユーザー''テーブルの''one_time_pw''列に格納されたハッシュと比較されます。両方のパスワードが一致する必要があります。
* ワンタイムパスワードで初めてログインすると、データベースから削除されます。ユーザーは、使用済みのパスワードで再びログインすることはできません。
* ワンタイムパスワードで初めてログインすると、データベースから削除されます。ユーザーは、使用済みのパスワードで再びログインすることはできません。
* ローカルLSシステムでは、異なるアカウントの権限をテストできません(電子メールパスワードと結びつける方法がないため)。

Latest revision as of 00:01, 4 May 2022

Message definition (Manage users)
'''Things to watch out for:'''
* To enable this login method, the line [[Optional settings#Use_one_time_passwords|<code>'use_one_time_passwords' => true</code>]] has to be added in config.php (it is 'false' by default).
* The passed username has to exist in the LimeSurvey ''users table''.
* The one-time password (which can be set via an external application) has to be stored as [https://secure.php.net/manual/en/function.md5.php MD5 hash] in the column ''one_time_pw'' of table ''users''.
* The passed plain text password will be hashed using the sha256 function and will then compared to the stored hash in column ''one_time_pw'' of table ''users''. Both passwords have to match.
* After the first login with the one-time password, it gets deleted from the database. The user won't be able to log in with that respective password a second time.

注意事項:

  • このログイン方法を有効にするには、config.phpで'use_one_time_passwords' => true;を追加する必要があります(既定値は'false'です)。
  • 渡されたユーザー名は、LimeSurveyのユーザーテーブルになければなりません。
  • ワンタイムパスワード(外部アプリケーション経由で設定可能)は、ユーザーテーブルのone_time_pw列にMD5ハッシュとして格納する必要があります。
  • 渡されたプレーンテキストのパスワードはsha256関数を使用してハッシュされ、ユーザーテーブルのone_time_pw列に格納されたハッシュと比較されます。両方のパスワードが一致する必要があります。
  • ワンタイムパスワードで初めてログインすると、データベースから削除されます。ユーザーは、使用済みのパスワードで再びログインすることはできません。