Update style and text

This commit is contained in:
Atridad Lahiji 2024-06-28 10:15:59 -06:00
parent 3f5cf06048
commit ea920f1ce6
No known key found for this signature in database
4 changed files with 5 additions and 4 deletions

View file

@ -27,6 +27,7 @@ func SignInUserHandler(c echo.Context) error {
// Set the session cookie with the generated session ID // Set the session cookie with the generated session ID
lib.SetSessionCookie(c.Response().Writer, "session", lib.SessionData{ lib.SetSessionCookie(c.Response().Writer, "session", lib.SessionData{
SessionID: sessionID, SessionID: sessionID,
Name: user.Name,
UserID: user.ID, UserID: user.ID,
Email: user.Email, Email: user.Email,
Roles: []string{"user"}, Roles: []string{"user"},

View file

@ -18,10 +18,10 @@ Pollo // Register
<input class="input input-bordered input-primary w-full max-w-xs" type="text" name="name" placeholder="Name" required> <input class="input input-bordered input-primary w-full max-w-xs" type="text" name="name" placeholder="Name" required>
<input class="input input-bordered input-primary w-full max-w-xs" type="email" name="email" placeholder="Email" required> <input class="input input-bordered input-primary w-full max-w-xs" type="email" name="email" placeholder="Email" required>
<input class="input input-bordered input-primary w-full max-w-xs" type="password" name="password" placeholder="Password" required> <input class="input input-bordered input-primary w-full max-w-xs" type="password" name="password" placeholder="Password" required>
<button class="btn btn-primary" type="submit">Sign In</button> <button class="btn btn-primary" type="submit">Register</button>
</form> </form>
<div id="error-message"style="color: red;"></div> <div id="error-message"style="color: red;"></div>
<p>Already have an account? <a href="/signin">Register</a></p> <p>Already have an account? <a class="link link-primary" href="/signin">Sign In!</a></p>
</div> </div>
{{end}} {{end}}

View file

@ -20,7 +20,7 @@ Pollo // Sign In
<button class="btn btn-primary" type="submit">Sign In</button> <button class="btn btn-primary" type="submit">Sign In</button>
</form> </form>
<div id="error-message"style="color: red;"></div> <div id="error-message"style="color: red;"></div>
<p>Don't have an account? <a href="/register">Register</a></p> <p>Don't have an account? <a class="link link-primary" href="/register">Register!</a></p>
</div> </div>
{{end}} {{end}}

File diff suppressed because one or more lines are too long