main
parent
f0d41db17d
commit
e5e8735425
|
|
@ -21,13 +21,13 @@ public class Passwort_Check {
|
||||||
if (passwort == null) {
|
if (passwort == null) {
|
||||||
return false;
|
return false;
|
||||||
} // Abfrage der Grossbuchstaben
|
} // Abfrage der Grossbuchstaben
|
||||||
return passwort.matches(".*[A-Z].*[A-Z].*[A-Z].*");
|
return passwort.matches(".*[A-Z].*[A-Z].*[A-Z].*"); //
|
||||||
}
|
}
|
||||||
|
|
||||||
public static boolean checkZiffer(String passwort) {
|
public static boolean checkZiffer(String passwort) {
|
||||||
if (passwort == null) {
|
if (passwort == null) {
|
||||||
return false;
|
return false;
|
||||||
} // Abfrage der ZiffernS
|
} // Abfrage der Ziffern
|
||||||
|
|
||||||
return passwort.matches(".*[0-9].*[0-9].*[0-9].*");
|
return passwort.matches(".*[0-9].*[0-9].*[0-9].*");
|
||||||
}
|
}
|
||||||
|
|
|
||||||
Loading…
Reference in New Issue