Manual:resetUserTokens.php
From Linux Web Expert
File:OOjs UI icon alert-destructive.svg | <translate> This feature was removed from MediaWiki core in version <tvar name=ver>1.39.0</tvar> (after being deprecated in <tvar name=4>1.27</tvar>).</translate> <translate> Please see <tvar name=page>$wgAuthenticationTokenVersion</tvar> for an alternative way to use this feature.</translate> |
Archivo de MediaWiki: resetUserTokens.php | |
---|---|
Ubicación: | maintenance/ |
Código fuente: | master • 1.41.1 • 1.40.3 • 1.39.7 |
Clases: | ResetUserTokens |
Detalles
resetUserTokens.php file is a maintenance script to reset the user_token of users on the wiki. On the one hand it can reset the token for all users. Note that this may log some of them out. Resetting all tokens is not necessary unless you believe your user table has been compromised. On the other hand you can use the script to change those tokens, which currently are NULL. This is useful to improve security for the affected users.
Uso
Parámetros
Opción/parámetro | Descripción |
---|---|
--nowarn | Hides the 5 seconds warning, defaults to false. |
--nulls | Only reset tokens that are currently null (string of \x00\'s). |