Donate to e Foundation | Murena handsets with /e/OS | Own a part of Murena! Learn more

Commit a918f894 authored by Alexandre Roux's avatar Alexandre Roux
Browse files

forbid backslashed in password

parent 4c2218c1
Loading
Loading
Loading
Loading
+1 −1
Original line number Diff line number Diff line
@@ -21,6 +21,7 @@ use OCP\AppFramework\Http\DataResponse;
use OCP\AppFramework\Http\RedirectResponse;
use OCP\AppFramework\Http\TemplateResponse;
use OCP\AppFramework\Services\IInitialState;
use OCP\Files\IAppData;
use OCP\IConfig;
use OCP\ILogger;
use OCP\IRequest;
@@ -28,7 +29,6 @@ use OCP\ISession;
use OCP\IURLGenerator;
use OCP\IUserSession;
use OCP\L10N\IFactory;
use OCP\Files\IAppData;

class AccountController extends Controller {
	protected $appName;
+1 −0
Original line number Diff line number Diff line
@@ -208,6 +208,7 @@ export default {
			passwordErrors: [],
			passwordRules: [
				{ message: t(this.appName, 'Incorrect password length: Required length is 8 to 32'), regex: /.{8,32}/ },
				{ message: t(this.appName, 'Backslashes can\'t be used in passwords.'), regex: /^(?!.*\\).*/ },
			],
			isUsernameAvailable: false,
			processing: false,