[RM-34013]: <SPU DSpace> ปรับระบบเรื่อง การ register ให้ allow แต่อีเมลมหาลัยเท่านั้น

Viewed 0

Problem Summary

From Redmine:
การ register ให้ allow แต่อีเมลมหาลัย

Root Cause Analysis

ต้องการให้ register แต่อีเมลมหาลัยเท่านั้น

  • @spu.ac.th
  • @chonburi.spu.ac.th
1 Answers

Solution / Workaround

  1. แก้ไขไฟล์คอนฟิกเพื่อจำกัดโดเมนอีเมลที่อนุญาตให้ลงทะเบียนได้ที่:
    [dspace]/config/modules/authentication-password.cfg

  2. กำหนดค่า parameter authentication-password.domain.valid ดังนี้:

    authentication-password.domain.valid = @spu.ac.th, @chonburi.spu.ac.th
    
  3. ทำการ Restart DSpace Backend (Tomcat) เพื่อให้การตั้งค่ามีผล

Verification Steps

  1. ตรวจสอบว่า register แต่อีเมลมหาลัยเท่านั้น
Accounts can be registered for mail addresses of the domains @spu.ac.th, @chonburi.spu.ac.th