Finished up with email verification system and profile page redux.
This commit is contained in:
parent
c32f3df3f3
commit
40c004795b
15 changed files with 275 additions and 58 deletions
22
src/views/partial/popup/changeEmail.ejs
Normal file
22
src/views/partial/popup/changeEmail.ejs
Normal file
|
|
@ -0,0 +1,22 @@
|
|||
<%# Canopy - The next generation of stoner streaming software
|
||||
Copyright (C) 2024-2025 Rainbownapkin and the TTN Community
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/changeEmail.css">
|
||||
<h3 id="email-change-popup-title" class="popup-title">Update Email</h3>
|
||||
<div id="email-change-popup-content">
|
||||
<p id="email-change-popup-caption">Enter new email and current password below:</p>
|
||||
<input type="email" placeholder="email" id="email-change-popup-email">
|
||||
<input type="password" placeholder="password" id="email-change-popup-password">
|
||||
</div>
|
||||
23
src/views/partial/popup/changePassword.ejs
Normal file
23
src/views/partial/popup/changePassword.ejs
Normal file
|
|
@ -0,0 +1,23 @@
|
|||
<%# Canopy - The next generation of stoner streaming software
|
||||
Copyright (C) 2024-2025 Rainbownapkin and the TTN Community
|
||||
|
||||
This program is free software: you can redistribute it and/or modify
|
||||
it under the terms of the GNU Affero General Public License as
|
||||
published by the Free Software Foundation, either version 3 of the
|
||||
License, or (at your option) any later version.
|
||||
|
||||
This program is distributed in the hope that it will be useful,
|
||||
but WITHOUT ANY WARRANTY; without even the implied warranty of
|
||||
MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
|
||||
GNU Affero General Public License for more details.
|
||||
|
||||
You should have received a copy of the GNU Affero General Public License
|
||||
along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
||||
<link rel="stylesheet" type="text/css" href="/css/popup/changePassword.css">
|
||||
<h3 id="password-change-popup-title" class="popup-title">Update Password</h3>
|
||||
<div id="password-change-popup-content">
|
||||
<p id="password-change-popup-caption">Enter new email and current password below:</p>
|
||||
<input type="password" placeholder="password" id="password-change-popup-old-password">
|
||||
<input type="password" placeholder="new password" id="password-change-popup-new-password">
|
||||
<input type="password" placeholder="confirm new password" id="password-change-popup-confirm-new-password">
|
||||
</div>
|
||||
|
|
@ -16,9 +16,10 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|||
<span class="profile-bio-span">
|
||||
<h4 id="profile-bio-label" class="profile-item-label">Bio:</h4>
|
||||
<% if(selfProfile){ %>
|
||||
<p class="profile-item interactive" id="profile-bio-content"><%- profile.bio %></p>
|
||||
<%# Make sure to convert newlines to br so they display proepr %>
|
||||
<p class="profile-item interactive" id="profile-bio-content"><%- profile.bio.replaceAll('\n','<br>') %></p>
|
||||
<textarea class="profile-item-prompt" id="profile-bio-prompt"></textarea>
|
||||
<% }else{ %>
|
||||
<p class="profile-item" id="profile-bio-content"><%- profile.bio %></p>
|
||||
<p class="profile-item" id="profile-bio-content"><%- profile.bio.replaceAll('\n','<br>') %></p>
|
||||
<% } %>
|
||||
</span>
|
||||
|
|
@ -15,6 +15,10 @@ You should have received a copy of the GNU Affero General Public License
|
|||
along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
||||
<div class="account-settings dynamic-container" id="account-settings-div">
|
||||
<h3 class="account-settings" id="account-settings-label">Account Settings</h3>
|
||||
<% if(profile.email){ %>
|
||||
<h4 class="account-settings" id="account-email-label">Email Address:</h3>
|
||||
<h4 class="account-settings" id="account-email-address"><%= profile.email %></h4>
|
||||
<% } %>
|
||||
<span class="account-settings" id="account-settings-buttons">
|
||||
<button href="javascript:" class="account-settings positive-button" id="account-settings-update-email-button">Update Email</button>
|
||||
<button href="javascript:" class="account-settings positive-button" id="account-settings-change-password-button">Change Password</button>
|
||||
|
|
|
|||
|
|
@ -18,7 +18,7 @@ along with this program. If not, see <https://www.gnu.org/licenses/>. %>
|
|||
<head>
|
||||
<%- include('partial/styles', {instance, user}); %>
|
||||
<%- include('partial/csrfToken', {csrfToken}); %>
|
||||
<% var selfProfile = user ? profile ? profile.user == user.user : false : false %>
|
||||
<% %>
|
||||
<link rel="stylesheet" type="text/css" href="/css/profile.css">
|
||||
<% if(profile){ %>
|
||||
<title><%= instance %> - Profile: <%= profile.user %></title>
|
||||
|
|
|
|||
Loading…
Add table
Add a link
Reference in a new issue