Gitlab@Informatics
Skip to content
GitLab
Explore
Sign in
Primary navigation
Search or go to…
Project
B
BorrowProject65160024-deleted-1917
Manage
Activity
Members
Labels
Plan
Issues
Issue boards
Milestones
Wiki
Code
Merge requests
Repository
Branches
Commits
Tags
Repository graph
Compare revisions
Snippets
Build
Pipelines
Jobs
Pipeline schedules
Artifacts
Deploy
Releases
Package registry
Container registry
Model registry
Operate
Environments
Terraform modules
Monitor
Incidents
Analyze
Value stream analytics
Contributor analytics
CI/CD analytics
Repository analytics
Model experiments
Help
Help
Support
GitLab documentation
Compare GitLab plans
GitLab community forum
Contribute to GitLab
Provide feedback
Terms and privacy
Keyboard shortcuts
?
Snippets
Groups
Projects
This project is pending deletion, and will be deleted on
2025-07-22
. Repository and other project resources are read-only.
Show more breadcrumbs
65160024
BorrowProject65160024-deleted-1917
Commits
399debb2
Commit
399debb2
authored
4 months ago
by
65160024
Browse files
Options
Downloads
Patches
Plain Diff
Update regis,login
parent
cc220bf0
No related branches found
No related tags found
No related merge requests found
Changes
2
Show whitespace changes
Inline
Side-by-side
Showing
2 changed files
views/login.ejs
+2
-1
2 additions, 1 deletion
views/login.ejs
views/register.ejs
+30
-5
30 additions, 5 deletions
views/register.ejs
with
32 additions
and
6 deletions
views/login.ejs
+
2
−
1
View file @
399debb2
...
...
@@ -10,7 +10,8 @@
<body
class=
"flex items-center justify-center h-screen bg-gray-100"
>
<div
class=
"bg-white p-6 rounded-lg shadow-md w-80"
>
<h2
class=
"text-2xl font-bold text-center mb-4"
>
เข้าสู่ระบบ
</h2>
<h2
class=
"text-2xl font-bold text-center mb-2"
>
ยินดีต้อนรับสู่ระบบ
</h2>
<p
class=
"text-center text-gray-600 mb-4"
>
ระบบยืม-คืนอุปกรณ์สำนักงาน
</p>
<form
action=
"/login"
method=
"POST"
>
<input
type=
"text"
name=
"username"
placeholder=
"Username"
required
class=
"border p-2 rounded w-full mb-2"
>
<input
type=
"password"
name=
"password"
placeholder=
"Password"
required
...
...
This diff is collapsed.
Click to expand it.
views/register.ejs
+
30
−
5
View file @
399debb2
<!DOCTYPE html>
<html
lang=
"
en
"
>
<html
lang=
"
th
"
>
<head>
<meta
charset=
"UTF-8"
>
<meta
name=
"viewport"
content=
"width=device-width, initial-scale=1.0"
>
<title>
สมัครสมาชิก
</title>
<script
src=
"https://cdn.tailwindcss.com"
></script>
<script>
function
validateForm
()
{
const
password
=
document
.
getElementById
(
'
password
'
).
value
;
const
confirmPassword
=
document
.
getElementById
(
'
confirm-password
'
).
value
;
if
(
password
!==
confirmPassword
)
{
alert
(
"
รหัสผ่านและการยืนยันรหัสผ่านไม่ตรงกัน
"
);
return
false
;
}
return
true
;
}
</script>
</head>
<body
class=
"flex items-center justify-center min-h-screen bg-gray-100"
>
<div
class=
"bg-white p-8 rounded-lg shadow-md w-96"
>
<h2
class=
"text-2xl font-bold mb-4 text-center"
>
สมัครสมาชิก
</h2>
<form
action=
"/register"
method=
"POST"
>
<h2
class=
"text-2xl font-bold mb-2 text-center"
>
สมัครสมาชิก
</h2>
<p
class=
"text-center text-gray-600 mb-4"
>
สร้างบัญชีเพื่อใช้งานระบบยืม-คืนอุปกรณ์สำนักงาน
</p>
<form
action=
"/register"
method=
"POST"
onsubmit=
"return validateForm()"
>
<div
class=
"mb-4"
>
<label
class=
"block font-semibold"
>
ชื่อผู้ใช้
</label>
<input
type=
"text"
name=
"username"
required
class=
"border p-2 w-full rounded"
>
<input
type=
"text"
name=
"username"
required
class=
"border p-2 w-full rounded"
placeholder=
"กรอกชื่อผู้ใช้"
>
</div>
<div
class=
"mb-4"
>
<label
class=
"block font-semibold"
>
รหัสผ่าน
</label>
<input
type=
"password"
name=
"password"
required
class=
"border p-2 w-full rounded"
>
<input
type=
"password"
name=
"password"
id=
"password"
required
class=
"border p-2 w-full rounded"
placeholder=
"รหัสผ่านอย่างน้อย 6 ตัว"
>
</div>
<div
class=
"mb-4"
>
<label
class=
"block font-semibold"
>
ยืนยันรหัสผ่าน
</label>
<input
type=
"password"
id=
"confirm-password"
required
class=
"border p-2 w-full rounded"
placeholder=
"ยืนยันรหัสผ่าน"
>
</div>
<button
type=
"submit"
class=
"w-full bg-blue-500 text-white py-2 rounded hover:bg-blue-600"
>
สมัครสมาชิก
</button>
</form>
<p
class=
"text-center text-sm text-gray-600 mt-4"
>
มีบัญชีอยู่แล้ว?
<a
href=
"/login"
class=
"text-blue-500"
>
เข้าสู่ระบบ
</a>
</p>
...
...
This diff is collapsed.
Click to expand it.
Preview
0%
Loading
Try again
or
attach a new file
.
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Save comment
Cancel
Please
register
or
sign in
to comment