Page Menu
Home
c4science
Search
Configure Global Search
Log In
Files
F100911292
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
Mon, Feb 3, 21:16
Size
698 B
Mime Type
text/x-php
Expires
Wed, Feb 5, 21:16 (1 d, 23 h)
Engine
blob
Format
Raw Data
Handle
24054716
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