Changeset View
Changeset View
Standalone View
Standalone View
src/applications/people/storage/PhabricatorUser.php
| Show First 20 Lines • Show All 657 Lines • ▼ Show 20 Lines | public function updateNameTokens() { | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'DELETE FROM %T WHERE userID = %d', | 'DELETE FROM %T WHERE userID = %d', | ||||
| $table, | $table, | ||||
| $this->getID()); | $this->getID()); | ||||
| if ($sql) { | if ($sql) { | ||||
| queryfx( | queryfx( | ||||
| $conn_w, | $conn_w, | ||||
| 'INSERT INTO %T (userID, token) VALUES %Q', | 'INSERT INTO %T (userID, token) VALUES %LQ', | ||||
| $table, | $table, | ||||
| implode(', ', $sql)); | $sql); | ||||
| } | } | ||||
| } | } | ||||
| public function sendWelcomeEmail(PhabricatorUser $admin) { | public function sendWelcomeEmail(PhabricatorUser $admin) { | ||||
| if (!$this->canEstablishWebSessions()) { | if (!$this->canEstablishWebSessions()) { | ||||
| throw new Exception( | throw new Exception( | ||||
| pht( | pht( | ||||
| 'Can not send welcome mail to users who can not establish '. | 'Can not send welcome mail to users who can not establish '. | ||||
| ▲ Show 20 Lines • Show All 1,011 Lines • Show Last 20 Lines | |||||