/[LeafOK_CVS]/lbbs/src/login.c
ViewVC logotype

Diff of /lbbs/src/login.c

Parent Directory Parent Directory | Revision Log Revision Log | View Patch Patch

Revision 1.62 by sysadm, Wed Oct 22 16:12:50 2025 UTC Revision 1.63 by sysadm, Mon Nov 3 06:21:01 2025 UTC
# Line 114  int check_user(const char *username, con Line 114  int check_user(const char *username, con
114          // Verify format          // Verify format
115          for (i = 0; ok && username[i] != '\0'; i++)          for (i = 0; ok && username[i] != '\0'; i++)
116          {          {
117                  if (!(isalpha(username[i]) || (i > 0 && isdigit(username[i]))))                  if (!(isalpha(username[i]) || (i > 0 && (isdigit(username[i]) || username[i] == '_'))))
118                  {                  {
119                          ok = 0;                          ok = 0;
120                  }                  }
121          }          }
122          if (ok && (i < 3 || i > 12))          if (ok && (i < 5 || i > BBS_username_max_len))
123          {          {
124                  ok = 0;                  ok = 0;
125          }          }
# Line 130  int check_user(const char *username, con Line 130  int check_user(const char *username, con
130                          ok = 0;                          ok = 0;
131                  }                  }
132          }          }
133          if (ok && (i < 5 || i > 12))          if (ok && (i < 5 || i > BBS_password_max_len))
134          {          {
135                  ok = 0;                  ok = 0;
136          }          }


Legend:
Removed lines/characters  
Changed lines/characters
  Added lines/characters

webmaster@leafok.com
ViewVC Help
Powered by ViewVC 1.3.0-beta1