Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F98186324
PhabricatorAuthPasswordUpgradeTransaction.php
No One
Temporary
Actions
Download File
Edit File
Delete File
View Transforms
Subscribe
Mute Notifications
Award Token
Subscribers
None
File Metadata
Details
File Info
Storage
Attached
Created
Fri, Jan 10, 20:12
Size
698 B
Mime Type
text/x-php
Expires
Sun, Jan 12, 20:12 (2 d)
Engine
blob
Format
Raw Data
Handle
23529853
Attached To
rPH Phabricator
PhabricatorAuthPasswordUpgradeTransaction.php
View Options
<?php
final
class
PhabricatorAuthPasswordUpgradeTransaction
extends
PhabricatorAuthPasswordTransactionType
{
const
TRANSACTIONTYPE
=
'password.upgrade'
;
public
function
generateOldValue
(
$object
)
{
$old_hasher
=
$this
->
getEditor
()->
getOldHasher
();
if
(!
$old_hasher
)
{
throw
new
PhutilInvalidStateException
(
'setOldHasher'
);
}
return
$old_hasher
->
getHashName
();
}
public
function
generateNewValue
(
$object
,
$value
)
{
return
$value
;
}
public
function
getTitle
()
{
return
pht
(
'%s upgraded the hash algorithm for this password from "%s" to "%s".'
,
$this
->
renderAuthor
(),
$this
->
renderOldValue
(),
$this
->
renderNewValue
());
}
}
Event Timeline
Log In to Comment