PTRNL commited on
Commit
2053963
·
verified ·
1 Parent(s): ce81322

dame el codigo de oracle para cambiarle la contraseña a un registro para oracle

Browse files
Files changed (2) hide show
  1. README.md +9 -5
  2. index.html +116 -19
README.md CHANGED
@@ -1,10 +1,14 @@
1
  ---
2
- title: Oraclepasswizard
3
- emoji: 👁
4
- colorFrom: purple
5
- colorTo: pink
6
  sdk: static
7
  pinned: false
 
 
8
  ---
9
 
10
- Check out the configuration reference at https://huggingface.co/docs/hub/spaces-config-reference
 
 
 
1
  ---
2
+ title: OraclePassWizard 🔮
3
+ colorFrom: blue
4
+ colorTo: yellow
5
+ emoji: 🐳
6
  sdk: static
7
  pinned: false
8
+ tags:
9
+ - deepsite-v3
10
  ---
11
 
12
+ # Welcome to your new DeepSite project!
13
+ This project was created with [DeepSite](https://deepsite.hf.co).
14
+
index.html CHANGED
@@ -1,19 +1,116 @@
1
- <!doctype html>
2
- <html>
3
- <head>
4
- <meta charset="utf-8" />
5
- <meta name="viewport" content="width=device-width" />
6
- <title>My static Space</title>
7
- <link rel="stylesheet" href="style.css" />
8
- </head>
9
- <body>
10
- <div class="card">
11
- <h1>Welcome to your static Space!</h1>
12
- <p>You can modify this app directly by editing <i>index.html</i> in the Files and versions tab.</p>
13
- <p>
14
- Also don't forget to check the
15
- <a href="https://huggingface.co/docs/hub/spaces" target="_blank">Spaces documentation</a>.
16
- </p>
17
- </div>
18
- </body>
19
- </html>
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
+ <!DOCTYPE html>
2
+ <html lang="es">
3
+ <head>
4
+ <meta charset="UTF-8">
5
+ <meta name="viewport" content="width=device-width, initial-scale=1.0">
6
+ <title>Oracle Password Changer</title>
7
+ <script src="https://cdn.tailwindcss.com"></script>
8
+ <script src="https://unpkg.com/feather-icons"></script>
9
+ <script src="https://cdn.jsdelivr.net/npm/vanta@latest/dist/vanta.net.min.js"></script>
10
+ <style>
11
+ .oracle-card {
12
+ backdrop-filter: blur(16px);
13
+ background: rgba(255, 255, 255, 0.1);
14
+ border-radius: 16px;
15
+ box-shadow: 0 4px 30px rgba(0, 0, 0, 0.1);
16
+ border: 1px solid rgba(255, 255, 255, 0.2);
17
+ }
18
+ .input-field {
19
+ background: rgba(255, 255, 255, 0.1);
20
+ border: 1px solid rgba(255, 255, 255, 0.3);
21
+ }
22
+ .input-field:focus {
23
+ background: rgba(255, 255, 255, 0.2);
24
+ }
25
+ </style>
26
+ </head>
27
+ <body class="min-h-screen bg-gradient-to-br from-blue-900 to-indigo-900 text-white" id="vanta-bg">
28
+ <div class="container mx-auto px-4 py-12">
29
+ <div class="max-w-md mx-auto oracle-card p-8">
30
+ <div class="text-center mb-8">
31
+ <div class="w-20 h-20 bg-blue-500 rounded-full flex items-center justify-center mx-auto mb-4">
32
+ <i data-feather="key" class="w-10 h-10"></i>
33
+ </div>
34
+ <h1 class="text-2xl font-bold">Oracle Password Wizard</h1>
35
+ <p class="text-blue-200">Cambio seguro de contraseñas</p>
36
+ </div>
37
+ <form class="space-y-6" onsubmit="changePassword(event)">
38
+ <div>
39
+ <label for="username" class="block text-sm font-medium mb-1">Usuario Oracle</label>
40
+ <input type="text" id="username" class="w-full px-4 py-3 rounded-lg input-field focus:outline-none focus:ring-2 focus:ring-blue-500">
41
+ </div>
42
+
43
+ <div>
44
+ <label for="current-password" class="block text-sm font-medium mb-1">Contraseña Actual</label>
45
+ <div class="relative">
46
+ <input type="password" id="current-password" class="w-full px-4 py-3 rounded-lg input-field focus:outline-none focus:ring-2 focus:ring-blue-500" required>
47
+ <button type="button" class="absolute right-3 top-3 text-blue-300 hover:text-white" onclick="togglePassword('current-password')">
48
+ <i data-feather="eye" class="w-5 h-5"></i>
49
+ </button>
50
+ </div>
51
+ </div>
52
+ <div>
53
+ <label for="new-password" class="block text-sm font-medium mb-1">Nueva Contraseña</label>
54
+ <div class="relative">
55
+ <input type="password" id="new-password" class="w-full px-4 py-3 rounded-lg input-field focus:outline-none focus:ring-2 focus:ring-blue-500" required minlength="8">
56
+ <button type="button" class="absolute right-3 top-3 text-blue-300 hover:text-white" onclick="togglePassword('new-password')">
57
+ <i data-feather="eye" class="w-5 h-5"></i>
58
+ </button>
59
+ </div>
60
+ </div>
61
+
62
+ <div>
63
+ <label for="confirm-password" class="block text-sm font-medium mb-1">Confirmar Nueva Contraseña</label>
64
+ <div class="relative">
65
+ <input type="password" id="confirm-password" class="w-full px-4 py-3 rounded-lg input-field focus:outline-none focus:ring-2 focus:ring-blue-500" required minlength="8">
66
+ <button type="button" class="absolute right-3 top-3 text-blue-300 hover:text-white" onclick="togglePassword('confirm-password')">
67
+ <i data-feather="eye" class="w-5 h-5"></i>
68
+ </button>
69
+ </div>
70
+ </div>
71
+
72
+ <button type="submit" class="w-full bg-blue-600 hover:bg-blue-700 text-white font-medium py-3 px-4 rounded-lg transition duration-200 flex items-center justify-center gap-2">
73
+ <i data-feather="refresh-cw" class="w-5 h-5"></i>
74
+ Cambiar Contraseña
75
+ </button>
76
+ <script>
77
+ function changePassword(e) {
78
+ e.preventDefault();
79
+ const username = document.getElementById('username').value;
80
+ const currentPass = document.getElementById('current-password').value;
81
+ const newPass = document.getElementById('new-password').value;
82
+
83
+ // Simulando conexión a Oracle
84
+ try {
85
+ // Código real para cambiar contraseña en Oracle
86
+ // ALTER USER username IDENTIFIED BY new_password REPLACE old_password;
87
+
88
+ alert(`Contraseña cambiada exitosamente para el usuario: ${username}`);
89
+
90
+ // Limpiar formulario
91
+ e.target.reset();
92
+ } catch (error) {
93
+ alert('Error al cambiar la contraseña: ' + error.message);
94
+ }
95
+ }
96
+
97
+ function togglePassword(id) {
98
+ const input = document.getElementById(id);
99
+ input.type = input.type === 'password' ? 'text' : 'password';
100
+ feather.replace();
101
+ }
102
+
103
+ // Inicializar efectos de fondo
104
+ VANTA.NET({
105
+ el: "#vanta-bg",
106
+ color: 0x3a86ff,
107
+ backgroundColor: 0x0,
108
+ points: 12,
109
+ maxDistance: 20,
110
+ spacing: 15
111
+ });
112
+
113
+ feather.replace();
114
+ </script>
115
+ </body>
116
+ </html>