app/lib/FFCMS/Controllers/Admin/Apps.php 1 location
|
@@ 148-151 (lines=4) @@
|
| 145 |
|
]); |
| 146 |
|
|
| 147 |
|
// at this point the app can be validated |
| 148 |
|
if (true !== $appsMapper->validate()) { |
| 149 |
|
$this->notify(['info' => $appsMapper->validationErrors($appsMapper->validate(false))]); |
| 150 |
|
$f3->reroute('@api_apps'); |
| 151 |
|
} |
| 152 |
|
|
| 153 |
|
if ($appsMapper->save()) { |
| 154 |
|
$this->notify(_('The app has been updated!'), 'success'); |
app/lib/FFCMS/Controllers/Admin/Tokens.php 1 location
|
@@ 143-146 (lines=4) @@
|
| 140 |
|
]); |
| 141 |
|
|
| 142 |
|
// at this point the app can be validated |
| 143 |
|
if (true !== $mapper->validate()) { |
| 144 |
|
$this->notify(['info' => $mapper->validationErrors($mapper->validate(false))]); |
| 145 |
|
$f3->reroute('@api_tokens'); |
| 146 |
|
} |
| 147 |
|
|
| 148 |
|
if ($mapper->save()) { |
| 149 |
|
$this->notify(_('The app token has been updated!'), 'success'); |
app/lib/FFCMS/Controllers/User/Apps.php 1 location
|
@@ 157-160 (lines=4) @@
|
| 154 |
|
]); |
| 155 |
|
|
| 156 |
|
// at this point the app can be validated |
| 157 |
|
if (true !== $appsMapper->validate()) { |
| 158 |
|
$this->notify(['info' => $appsMapper->validationErrors($appsMapper->validate(false))]); |
| 159 |
|
$f3->reroute('@api_apps'); |
| 160 |
|
} |
| 161 |
|
|
| 162 |
|
if ($appsMapper->save()) { |
| 163 |
|
$this->notify(_('Your app has been updated!'), 'success'); |