Skip to content

Commit

Permalink
fix tests
Browse files Browse the repository at this point in the history
  • Loading branch information
ildyria committed Sep 12, 2022
1 parent 6589525 commit 191afa8
Showing 1 changed file with 1 addition and 1 deletion.
2 changes: 1 addition & 1 deletion app/Models/User.php
Original file line number Diff line number Diff line change
Expand Up @@ -136,7 +136,7 @@ public function username(): string
*
* @return string
*/
public function getNameAttribute(): string
public function name(): string
{
// If strings starts by '$2y$', it is very likely that it's a blowfish hash.
return substr($this->username, 0, 4) === '$2y$' ? 'Admin' : $this->username;
Expand Down

0 comments on commit 191afa8

Please sign in to comment.