diff options
Diffstat (limited to 'app/Model/Config.php')
| -rw-r--r-- | app/Model/Config.php | 5 |
1 files changed, 4 insertions, 1 deletions
diff --git a/app/Model/Config.php b/app/Model/Config.php index 2f7c660b..178093c4 100644 --- a/app/Model/Config.php +++ b/app/Model/Config.php @@ -174,7 +174,10 @@ class Config extends Base */ public function regenerateTokens() { - $this->db->table(self::TABLE)->update(array('webhooks_token' => Security::generateToken())); + $this->db->table(self::TABLE)->update(array( + 'webhooks_token' => Security::generateToken(), + 'api_token' => Security::generateToken(), + )); $projects = $this->db->table(Project::TABLE)->findAllByColumn('id'); |
