Book a Demo!
CoCalc Logo Icon
StoreFeaturesDocsShareSupportNewsAboutPoliciesSign UpSign In
freebsd
GitHub Repository: freebsd/phabricator
Path: blob/master/src/applications/passphrase/xaction/PassphraseCredentialLookedAtTransaction.php
12256 views
1
<?php
2
3
final class PassphraseCredentialLookedAtTransaction
4
extends PassphraseCredentialTransactionType {
5
6
const TRANSACTIONTYPE = 'passphrase:lookedAtSecret';
7
8
public function generateOldValue($object) {
9
return null;
10
}
11
12
public function getTitle() {
13
return pht(
14
'%s examined the secret plaintext for this credential.',
15
$this->renderAuthor());
16
}
17
18
public function getTitleForFeed() {
19
return pht(
20
'%s examined the secret plaintext for credential %s.',
21
$this->renderAuthor(),
22
$this->renderObject());
23
}
24
25
public function getIcon() {
26
return 'fa-eye';
27
}
28
29
public function getColor() {
30
return 'blue';
31
}
32
33
public function shouldTryMFA(
34
$object,
35
PhabricatorApplicationTransaction $xaction) {
36
return true;
37
}
38
39
}
40
41