Mantis 需要新用户点击邮件中收到的链接。根据公司政策,sendmail(或任何其他)应用程序不能在服务器上处于事件状态。如何允许用户在没有有效电子邮件的情况下注册?
无论如何我可以运行更新查询并直接在数据库中更改密码并将其交给用户吗?
最佳答案
通过
http://path/to/mantis/manage_user_create_page.php
(使用现有的管理员帐户)正常创建用户打开命令提示符并登录 MySQL (
mysql -u root -p
)使用 bugtracker;
(其中 bugtracker 是螳螂 bd 的名称;默认 = bugtracker)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-ntType 'help;' or '\h' for help. Type '\c' to clear the buffer.
mysql> use bugtracker;
Database changedmysql> 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/