mysql - mantis 新用户注册无需邮箱

标签 mysql mantis

Mantis 需要新用户点击邮件中收到的链接。根据公司政策,sendmail(或任何其他)应用程序不能在服务器上处于事件状态。如何允许用户在没有有效电子邮件的情况下注册?

无论如何我可以运行更新查询并直接在数据库中更改密码并将其交给用户吗?

最佳答案

  1. 通过http://path/to/mantis/manage_user_create_page.php(使用现有的管理员帐户)正常创建用户

  2. 打开命令提示符并登录 MySQL (mysql -u root -p)

  3. 使用 bugtracker;(其中 bugtracker 是螳螂 bd 的名称;默认 = bugtracker)

  4. update mantis_user_table set password=md5('password') where username='username';

整个 cmd 交换如下所示:

C:\Program Files\MySQL\MySQL Server 4.1\bin>mysql -u root -p
Enter password: *********
Welcome to the MySQL monitor. Commands end with ; or \g.
Your MySQL connection id is 7 to server version: 4.1.21-community-nt

Type 'help;' or '\h' for help. Type '\c' to clear the buffer.

mysql> use bugtracker;
Database changed

mysql> update mantis_user_table set password=md5('password') where username='username';
Query OK, 1 row affected (0.00 sec)
Rows matched: 1 Changed: 1 Warnings: 0

关于mysql - mantis 新用户注册无需邮箱,我们在Stack Overflow上找到一个类似的问题: https://stackoverflow.com/questions/2145023/

相关文章:

php - 如何在 cron 作业中加载 xml

mysql - 通过 PRIMARY KEY 查询更新在大表上太慢

mysql - 是否可以手动执行选择查询,而不会阻塞其他查询?

azure - Mantis - 通过 Windows Azure Active Directory 进行身份验证

mysql - 如何有效地获取 mysql 表中版本最高的条目

php - 如何用四列回显两行

authentication - 如何为 Mantis - LDAP 和数据库用户设置双重身份验证?

php - 在 MS SQL Server 上运行 Mantis

bug-tracking - Bugzilla 还是 Mantis?

mysql - Mantis 在 Mysql 上安装错误