Skip to content

Commit

Permalink
Fix password strength silent failure and update netid requirement.
Browse files Browse the repository at this point in the history
  • Loading branch information
SohamG committed Mar 22, 2024
1 parent 023d5a1 commit d7e0958
Show file tree
Hide file tree
Showing 3 changed files with 15 additions and 18 deletions.
23 changes: 10 additions & 13 deletions flake.lock

Some generated files are not rendered by default. Learn more about how customized files appear on GitHub.

4 changes: 2 additions & 2 deletions flake.nix
Original file line number Diff line number Diff line change
@@ -1,8 +1,8 @@
{
description = "Cerberus Dev Environment 22.11";
description = "Cerberus Dev Environment 23.05";

inputs = {
nixpkgs.url = "github:NixOS/nixpkgs/22.11";
nixpkgs.url = "nixpkgs";
flake-utils.url = "github:numtide/flake-utils";
};

Expand Down
6 changes: 3 additions & 3 deletions src/routes/register/+page.svelte
Original file line number Diff line number Diff line change
Expand Up @@ -15,11 +15,11 @@
if (data.get('password') !== data.get('password2')) {
ui_msg = 'Password mismatch!';
cancel();
}
} else
if (!_password_req(data.get('password'))) {
ui_msg = 'Password must contain lower,upper,digit,special';
cancel();
}
} else
ui_msg = 'Thinking about it...';
// if (!cl_discord_code) {
// ui_msg = 'Make sure the discord code is in the URL!';
Expand Down Expand Up @@ -113,7 +113,7 @@
form="regform"
name="username"
type="text"
pattern="[a-z]+[0-9]+"
pattern="[a-z]+[0-9]*"
required
/></td
>
Expand Down

0 comments on commit d7e0958

Please sign in to comment.