File modules/cms/action/user/UserDeltokenAction.class.php
Last commit: Mon Jan 6 22:48:11 2025 +0100 Jan Dankert New: Now it is possible to remove and create new login/api token for a user; new API authorization with the authorization scheme "api".
1 <?php 2 namespace cms\action\user; 3 use cms\action\Method; 4 use cms\action\UserAction; 5 use cms\base\Configuration; 6 use cms\base\Startup; 7 use language\Messages; 8 use security\Base2n; 9 use security\Password; 10 11 /** 12 * Shows the login tokens of this user. 13 * 14 * @package cms\action\user 15 */ 16 class UserDeltokenAction extends UserAction implements Method { 17 18 public function post() { 19 20 $this->user->deleteToken( $this->request->getRequiredNumber('tokenid') ); 21 $this->addNoticeFor($this->user,Messages::DELETED); 22 } 23 }
Downloadmodules/cms/action/user/UserDeltokenAction.class.php
History Mon, 6 Jan 2025 22:48:11 +0100 Jan Dankert New: Now it is possible to remove and create new login/api token for a user; new API authorization with the authorization scheme "api".