clarkwinkelmann/flarum-ext-readonly-profile 问题修复 & 功能扩展

解决BUG、新增功能、兼容多环境部署,快速响应你的开发需求

邮箱:yvsm@zunyunkeji.com | QQ:316430983 | 微信:yvsm316

clarkwinkelmann/flarum-ext-readonly-profile

最新稳定版本:1.0.1

Composer 安装命令:

composer require clarkwinkelmann/flarum-ext-readonly-profile

包简介

Remove ability to edit various profile attributes

关键字:

README 文档

README

MIT license Latest Stable Version Total Downloads Donate

This extension removes the ability for users to perform various actions on the forum. It removes both the UI controls and disables the underlying REST API endpoints.

This is intended for forums where administrators are the only person editing user profiles or to be used in custom integrations where the data is synced from a different platform.

Available options:

  • Disable Login: disable regular login endpoint, but preserve ability to create access tokens. Sessions can still be started through the use of manually created remember tokens.
  • Disable Access Token Creation: completely disables ability to create regular and remember access tokens. This makes it impossible to start new sessions. Disable Login is implicit with this option. API keys are not affected.
  • Disable Email Change: disables regular email change requests. Admins can still edit other users.
  • Disable Password Change and Reset: disables regular password edit. Admins can still set a password on other users.
  • Disable Avatar Edit: disables avatar upload and removal. Admins can still use the endpoint.

If you enable Disable Login or Disable Access Token Creation you will lock yourself out of the forum if no other login/authentication system is in place. To recover access to the forum in case of an issue you need to either:

  • Use an API Key to disable the settings or extension through the REST API.
  • Disable the setting or extension by manually editing the database.
  • Removing the Composer package.

If you use an external login system and have set a random password on Flarum user accounts, Disable Login, Disable Access Token Creation and Disable Email Change aren't strictly needed because users cannot use these endpoints without knowing the Flarum user password anyway. You could just hide the buttons from the UI with CSS and it would be enough.

Installation

composer require clarkwinkelmann/flarum-ext-readonly-profile

Support

This extension is under minimal maintenance.

It was developed for a client and released as open-source for the benefit of the community. I might publish simple bugfixes or compatibility updates for free.

You can contact me to sponsor additional features or updates.

Support is offered on a "best effort" basis through the Flarum community thread.

Sponsors: Dater.com

Links

统计信息

  • 总下载量: 1.73k
  • 月度下载量: 0
  • 日度下载量: 0
  • 收藏数: 1
  • 点击次数: 1
  • 依赖项目数: 0
  • 推荐数: 0

GitHub 信息

  • Stars: 1
  • Watchers: 1
  • Forks: 0
  • 开发语言: PHP

其他信息

  • 授权协议: MIT
  • 更新时间: 2022-02-20