This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| /// <summary> | |
| /// Recorre l'arxiu d'usuaris buscant l'usuari | |
| /// </summary> | |
| /// <param name="nomUsuari"></param> | |
| /// <returns> | |
| // Retorna "404" si no troba l'usuari i el string de hash si el troba | |
| /// si hi ha error es retorna un string nulll | |
| /// </returns> | |
| public static string LlegiUsuari (string nomUsuari) | |
| { |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| Console.Write("Entra el password: "); | |
| ConsoleKeyInfo key; | |
| string password = null; | |
| do | |
| { | |
| key = Console.ReadKey(true); | |
| // Si no es retrocés o enter llegeix la tecla | |
| if (key.Key != ConsoleKey.Backspace && key.Key != ConsoleKey.Enter) | |
| { |
NewerOlder