public function saveBackendOptions(IUser $user, $id, array $options) { $this->credentialsManager->store($user->getUID(), $this->getCredentialsIdentifier($id), ['user' => $options['user'], 'password' => $options['password']]); }
/** * Hook listener on post login * * @param array $params */ public function authenticate(array $params) { $userId = $params['uid']; $credentials = ['user' => $this->session->get('loginname'), 'password' => $params['password']]; $this->credentialsManager->store($userId, self::CREDENTIALS_IDENTIFIER, $credentials); }
public function saveAuth($uid, $user, $password) { $this->credentialsManager->store($uid, self::CREDENTIALS_IDENTIFIER, ['user' => $user, 'password' => $password]); }