:::
:::

#25 請問使用者帳號的密碼重設功能

諮詢於: ‘網站協助(請用測試帳登入)’
This is a public ticket

Everybody will be able to see its contents. Do not include usernames, passwords or any other sensitive information.

學校欄位

學校名稱
暖暖高中
姓名或暱稱
資訊組長
電子信箱
該 Email 地址已受到反垃圾郵件外掛保護。要顯示它需要在瀏覽器中啓用 JavaScript。

編輯於[hasrhgni]最新編輯時間於 [2025年8月月27日 11:40, 星期三 CST]

klteacher002

請問一下,我在幫學校行政同仁新增帳號時,想要請他們第一次登入後就改密碼。我看到最下方有一個"要求密碼重設"的按鈕,不知道是不是這個功能要打開?

但我很擔心我打開後,大家每次登入都會被要求要改密碼。(資訊組長的帳號沒有這個按鈕,我也無法測試。)

再請解惑,謝謝。

hasrhgni

組長您好,目前網站沒有第一次登入時 (要求改密碼) 的功能, [要求密碼重設] 是同仁在前台忘記密碼時使用,但使用前需設定2個地方
1.郵件伺服器要設定:
系統-->全站設定-->伺服器(拉到下方會看到)
2.同仁的E-Mail:郵件伺服器設定好後,同仁才收的到郵件,收到郵件會有認證連結,點擊認證連結後才能變更密碼

您可用教師的測試帳號測試,或是在後台自行新增一個會員後測試也可以

使用資訊組長的權限登入後台,可以直接修改密碼
之後在無障礙標章申請通過後,會執行OpenID的串接,帳號會使用OpenID登入
如果真的有需要郵件伺服器的功能,我可能需和處端討論一下
如果急著使用,可參考下方:
如果要使用郵件伺服器,或許可使用Google提供的郵件伺服器,但設定上比較麻煩

How to Send Joomla Emails Using Gmail SMTP Server

To send emails using Gmail's SMTP server, you must enable two-factor authentication on your Google account (personal or workspace) and generate an app password.

Step 1: Enable 2-Step Verification

2-step verification enhances your Gmail account security by requiring a second form of verification in addition to your password, preventing unauthorized access even if your password is compromised.

For Google Personal Accounts

To enable 2-Step Verification, click here: Enable 2-Step Verification on my Personal Account

For Google Workspace Accounts

To enable 2-Step Verification, click here: Enable 2-Step Verification on my Business Account

Once you've enabled 2-Step Verification on your account, you can create your app password to send emails using the Gmail SMTP.

Step 2: Create an App Password

App passwords allow Joomla to access your Gmail account securely when 2-step verification is enabled. This provides a unique password for Joomla without compromising your main Gmail password.

For Google Personal Accounts

To create an app password, click here: Create an App Password on my Personal Account

For Google Workspace Accounts

To create an app password, click here: Create an App Password on my Business Account

Once you've created your app password, please store it somewhere. In the next step, you'll need to type it into your Joomla Mail Settings.

Step 3: Setup Gmail SMTP Server

Next, log into your administrator panel and click System > Global Configuration > Server.

Locate Global Configuration tab that includes SMTP details

Then, locate the "Mail" section. Joomla uses "PHP Mail" to send emails by default, as seen from the "Mailer" setting value.

Global Configuration Mail Settings Default Settings

We can now start configuring the Mail Settings to use the Gmail SMTP to send emails.

  • Set the From Email to the email address from which your Joomla will send emails. You should set it to the Gmail address you will use to authenticate the SMTP server later.
  • Set the From Name to the name that will be used to send your emails.
  • Select "SMTP" in the "Mailer" option to connect to the Outlook SMTP Server.
  • Set the SMTP Host for Outlook to smtp.gmail.com
  • Set the SMTP Port to 465. If your web server blocks this port, use 587 instead.
  • Set the SMTP Security to SSL/TLS or STARTTLS.
  • Enable SMTP Authentication and enter your Gmail email address and app password in SMTP Username and SMTP Password fields, respectively.

Global Configuration Mail Settings Gmail SMTP Settings

That's it! Save your settings after configuring your Mail settings.

Step 4: Test your mail settings

After configuring your mail settings, you should run a test to ensure your credentials are correctly set. To do so, press the "Send Test Mail" button to verify that your settings are valid. If your settings are correct, you should see a green notice, as seen below:

Send Test Email with Gmail SMTP

The test email should now be in your Gmail inbox.

Gmail received successfully using Gmail SMTP

Conclusion

And there you have it! Your Joomla 5 site can now send emails reliably using the Gmail SMTP server. This ensures that important emails, like contact form submissions or password reset requests, are delivered without issues using Gmail SMTP.