Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Invalidate active sessions after password changing (#5872)
* Invalidate active sessions after password changing * Update CHANGELOG-DEV.md (#5872)
- Loading branch information
1 parent
7f9d9f2
commit 1ed3881
Showing
4 changed files
with
42 additions
and
2 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
25 changes: 25 additions & 0 deletions
25
protected/humhub/modules/user/migrations/m220919_104234_auth_key.php
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,25 @@ | ||
<?php | ||
|
||
use humhub\components\Migration; | ||
|
||
/** | ||
* Class m220919_104234_auth_key | ||
*/ | ||
class m220919_104234_auth_key extends Migration | ||
{ | ||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function safeUp() | ||
{ | ||
$this->safeAddColumn('user', 'auth_key', $this->string(32)->null()); | ||
} | ||
|
||
/** | ||
* {@inheritdoc} | ||
*/ | ||
public function safeDown() | ||
{ | ||
$this->safeDropColumn('user', 'auth_key'); | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters