📁 PHP Dosya Yöneticisi
/
/
home
/
demodesigncom
/
blogscripti.demodesign.com.tr
/
admin
/
assets
/
js
📝
pages-auth.js
← Geri Dön
/** * Pages Authentication */ 'use strict'; 'use strict'; const formAuthentication = document.querySelector('#formAuthentication'); document.addEventListener('DOMContentLoaded', function (e) { (function () { // Yeni kayıt için form doğrulaması if (formAuthentication) { const fv = FormValidation.formValidation(formAuthentication, { fields: { username: { validators: { notEmpty: { message: 'Lütfen kullanıcı adınızı girin' }, stringLength: { min: 6, message: 'Kullanıcı adı en az 3 karakter olmalıdır' } } }, 'email-username': { validators: { notEmpty: { message: 'Lütfen e-posta / kullanıcı adınızı girin' }, stringLength: { min: 6, message: 'Kullanıcı adı en az 6 karakter olmalıdır' } } }, password: { validators: { notEmpty: { message: 'Lütfen şifrenizi girin' }, stringLength: { min: 3, message: 'Şifre en az 3 karakter olmalıdır' } } }, 'confirm-password': { validators: { notEmpty: { message: 'Lütfen şifrenizi tekrar girin' }, identical: { compare: function () { return formAuthentication.querySelector('[name="password"]').value; }, message: 'Şifre ve tekrarı eşleşmiyor' }, stringLength: { min: 6, message: 'Şifre en az 6 karakter olmalıdır' } } }, terms: { validators: { notEmpty: { message: 'Lütfen şartları ve koşulları kabul edin' } } } }, plugins: { trigger: new FormValidation.plugins.Trigger(), bootstrap5: new FormValidation.plugins.Bootstrap5({ eleValidClass: '', rowSelector: '.mb-3' }), submitButton: new FormValidation.plugins.SubmitButton(), defaultSubmit: new FormValidation.plugins.DefaultSubmit(), autoFocus: new FormValidation.plugins.AutoFocus() }, init: instance => { instance.on('plugins.message.placed', function (e) { if (e.element.parentElement.classList.contains('input-group')) { e.element.parentElement.insertAdjacentElement('afterend', e.messageElement); } }); } }); } // İki Adımlı Doğrulama const numeralMask = document.querySelectorAll('.numeral-mask'); // Doğrulama maskeleniyor if (numeralMask.length) { numeralMask.forEach(e => { new Cleave(e, { numeral: true }); }); } })(); });
💾 Kaydet
İptal
📝 Yeniden Adlandır
İptal
Kaydet
🔐 Dosya İzinleri (chmod)
İzin Değeri:
Hızlı Seçim:
777
755
644
600
777
= Herkes okur/yazar/çalıştırır
755
= Sahip tam, diğerleri okur/çalıştırır
644
= Sahip okur/yazar, diğerleri okur
600
= Sadece sahip okur/yazar
İptal
Uygula