Not logged in.  Login/Logout/Register | List snippets | | Create snippet | Upload image | Upload data

5
LINES

< > BotCompany Repo | #1023346 // assistant_checkPasswordStructure - null if OK

JavaX fragment (include)

1  
sS assistant_checkPasswordStructure(S pw) {
2  
  if (l(pw) < 8) ret "Password must be at least 8 characters long";
3  
  if (containsSpace(pw)) ret "Password must not contain spaces";
4  
  null;
5  
}

Author comment

Began life as a copy of #1023344

download  show line numbers  debug dex  old transpilations   

Travelled to 7 computer(s): bhatertpkbcr, cfunsshuasjs, mqqgnosmbjvj, pyentgdyhuwx, pzhvpgtvlbxg, tvejysmllsmz, vouqrxazstgt

No comments. add comment

Snippet ID: #1023346
Snippet name: assistant_checkPasswordStructure - null if OK
Eternal ID of this version: #1023346/1
Text MD5: 88eb3fe7145d1a76f640ce184287de9e
Author: stefan
Category: javax / assistants
Type: JavaX fragment (include)
Public (visible to everyone): Yes
Archived (hidden from active list): No
Created/modified: 2019-06-06 20:53:57
Source code size: 190 bytes / 5 lines
Pitched / IR pitched: No / No
Views / Downloads: 272 / 321
Referenced in: [show references]