~mvo/ubuntu-sso-client/strawman-lp711413

« back to all changes in this revision

Viewing changes to data/qt/setup_account.ui

  • Committer: Tarmac
  • Author(s): Manuel de la Pena, ralsina, Roberto Alsina
  • Date: 2011-04-14 17:01:56 UTC
  • mfrom: (705.2.2 forgotten_password)
  • Revision ID: tarmac-20110414170156-4k8s1708gzgj5oi2
Fixes lp:753281

Adds the required UI and backend to allow a windows user to reset his sso password from the Windows client. Tests have been added to ensure that the backend is correctly called.

Show diffs side-by-side

added added

removed removed

Lines of Context:
6
6
   <rect>
7
7
    <x>0</x>
8
8
    <y>0</y>
9
 
    <width>407</width>
10
 
    <height>453</height>
 
9
    <width>415</width>
 
10
    <height>359</height>
11
11
   </rect>
12
12
  </property>
13
13
  <property name="windowTitle">
38
38
        <item>
39
39
         <layout class="QVBoxLayout" name="verticalLayout_2">
40
40
          <item>
 
41
           <layout class="QVBoxLayout" name="verticalLayout_7">
 
42
            <item>
 
43
             <layout class="QHBoxLayout" name="horizontalLayout_10">
 
44
              <item>
 
45
               <widget class="QLineEdit" name="first_name_edit">
 
46
                <property name="placeholderText">
 
47
                 <string/>
 
48
                </property>
 
49
               </widget>
 
50
              </item>
 
51
              <item>
 
52
               <widget class="QLineEdit" name="last_name_edit">
 
53
                <property name="placeholderText">
 
54
                 <string/>
 
55
                </property>
 
56
               </widget>
 
57
              </item>
 
58
             </layout>
 
59
            </item>
 
60
            <item>
 
61
             <layout class="QHBoxLayout" name="horizontalLayout_11">
 
62
              <item>
 
63
               <widget class="QLineEdit" name="email_edit">
 
64
                <property name="placeholderText">
 
65
                 <string/>
 
66
                </property>
 
67
               </widget>
 
68
              </item>
 
69
              <item>
 
70
               <widget class="QLineEdit" name="confirm_email_edit">
 
71
                <property name="placeholderText">
 
72
                 <string/>
 
73
                </property>
 
74
               </widget>
 
75
              </item>
 
76
             </layout>
 
77
            </item>
 
78
            <item>
 
79
             <layout class="QHBoxLayout" name="horizontalLayout_12">
 
80
              <item>
 
81
               <layout class="QVBoxLayout" name="verticalLayout_32">
 
82
                <item>
 
83
                 <widget class="QLineEdit" name="password_edit">
 
84
                  <property name="toolTip">
 
85
                   <string>Your password must be at least 8 characters long and at least contain one number and one upper later.</string>
 
86
                  </property>
 
87
                  <property name="statusTip">
 
88
                   <string/>
 
89
                  </property>
 
90
                  <property name="echoMode">
 
91
                   <enum>QLineEdit::Password</enum>
 
92
                  </property>
 
93
                  <property name="placeholderText">
 
94
                   <string/>
 
95
                  </property>
 
96
                 </widget>
 
97
                </item>
 
98
                <item>
 
99
                 <widget class="QFrame" name="strength_frame">
 
100
                  <property name="sizePolicy">
 
101
                   <sizepolicy hsizetype="Preferred" vsizetype="Preferred">
 
102
                    <horstretch>0</horstretch>
 
103
                    <verstretch>0</verstretch>
 
104
                   </sizepolicy>
 
105
                  </property>
 
106
                  <property name="minimumSize">
 
107
                   <size>
 
108
                    <width>0</width>
 
109
                    <height>20</height>
 
110
                   </size>
 
111
                  </property>
 
112
                  <property name="maximumSize">
 
113
                   <size>
 
114
                    <width>16777215</width>
 
115
                    <height>30</height>
 
116
                   </size>
 
117
                  </property>
 
118
                  <property name="locale">
 
119
                   <locale language="English" country="UnitedStates"/>
 
120
                  </property>
 
121
                  <property name="frameShape">
 
122
                   <enum>QFrame::StyledPanel</enum>
 
123
                  </property>
 
124
                  <property name="frameShadow">
 
125
                   <enum>QFrame::Raised</enum>
 
126
                  </property>
 
127
                  <layout class="QHBoxLayout" name="horizontalLayout_15">
 
128
                   <property name="spacing">
 
129
                    <number>3</number>
 
130
                   </property>
 
131
                   <property name="leftMargin">
 
132
                    <number>2</number>
 
133
                   </property>
 
134
                   <property name="topMargin">
 
135
                    <number>0</number>
 
136
                   </property>
 
137
                   <property name="rightMargin">
 
138
                    <number>2</number>
 
139
                   </property>
 
140
                   <property name="bottomMargin">
 
141
                    <number>2</number>
 
142
                   </property>
 
143
                   <item>
 
144
                    <widget class="QFrame" name="weak_frame">
 
145
                     <property name="maximumSize">
 
146
                      <size>
 
147
                       <width>16777215</width>
 
148
                       <height>10</height>
 
149
                      </size>
 
150
                     </property>
 
151
                     <property name="frameShape">
 
152
                      <enum>QFrame::StyledPanel</enum>
 
153
                     </property>
 
154
                     <property name="frameShadow">
 
155
                      <enum>QFrame::Plain</enum>
 
156
                     </property>
 
157
                     <layout class="QVBoxLayout" name="verticalLayout_33">
 
158
                      <property name="margin">
 
159
                       <number>0</number>
 
160
                      </property>
 
161
                     </layout>
 
162
                    </widget>
 
163
                   </item>
 
164
                   <item>
 
165
                    <widget class="QFrame" name="medium_frame">
 
166
                     <property name="maximumSize">
 
167
                      <size>
 
168
                       <width>16777215</width>
 
169
                       <height>10</height>
 
170
                      </size>
 
171
                     </property>
 
172
                     <property name="frameShape">
 
173
                      <enum>QFrame::StyledPanel</enum>
 
174
                     </property>
 
175
                     <property name="frameShadow">
 
176
                      <enum>QFrame::Plain</enum>
 
177
                     </property>
 
178
                     <layout class="QVBoxLayout" name="verticalLayout_34">
 
179
                      <property name="margin">
 
180
                       <number>0</number>
 
181
                      </property>
 
182
                     </layout>
 
183
                    </widget>
 
184
                   </item>
 
185
                   <item>
 
186
                    <widget class="QFrame" name="strong_frame">
 
187
                     <property name="maximumSize">
 
188
                      <size>
 
189
                       <width>16777215</width>
 
190
                       <height>10</height>
 
191
                      </size>
 
192
                     </property>
 
193
                     <property name="frameShape">
 
194
                      <enum>QFrame::StyledPanel</enum>
 
195
                     </property>
 
196
                     <property name="frameShadow">
 
197
                      <enum>QFrame::Plain</enum>
 
198
                     </property>
 
199
                     <layout class="QVBoxLayout" name="verticalLayout_35">
 
200
                      <property name="margin">
 
201
                       <number>0</number>
 
202
                      </property>
 
203
                     </layout>
 
204
                    </widget>
 
205
                   </item>
 
206
                  </layout>
 
207
                 </widget>
 
208
                </item>
 
209
                <item>
 
210
                 <spacer name="_strenghSpacer">
 
211
                  <property name="orientation">
 
212
                   <enum>Qt::Vertical</enum>
 
213
                  </property>
 
214
                  <property name="sizeHint" stdset="0">
 
215
                   <size>
 
216
                    <width>20</width>
 
217
                    <height>5</height>
 
218
                   </size>
 
219
                  </property>
 
220
                 </spacer>
 
221
                </item>
 
222
               </layout>
 
223
              </item>
 
224
              <item>
 
225
               <layout class="QVBoxLayout" name="verticalLayout_8">
 
226
                <item>
 
227
                 <widget class="QLineEdit" name="confirm_password_edit">
 
228
                  <property name="echoMode">
 
229
                   <enum>QLineEdit::Password</enum>
 
230
                  </property>
 
231
                  <property name="placeholderText">
 
232
                   <string/>
 
233
                  </property>
 
234
                 </widget>
 
235
                </item>
 
236
                <item>
 
237
                 <spacer name="verticalSpacer_6">
 
238
                  <property name="orientation">
 
239
                   <enum>Qt::Vertical</enum>
 
240
                  </property>
 
241
                  <property name="sizeHint" stdset="0">
 
242
                   <size>
 
243
                    <width>20</width>
 
244
                    <height>10</height>
 
245
                   </size>
 
246
                  </property>
 
247
                 </spacer>
 
248
                </item>
 
249
               </layout>
 
250
              </item>
 
251
             </layout>
 
252
            </item>
 
253
           </layout>
 
254
          </item>
 
255
          <item>
41
256
           <widget class="QLabel" name="password_info_label">
42
257
            <property name="sizePolicy">
43
258
             <sizepolicy hsizetype="Preferred" vsizetype="Fixed">
54
269
           </widget>
55
270
          </item>
56
271
          <item>
57
 
           <layout class="QVBoxLayout" name="verticalLayout_4">
58
 
            <item>
59
 
             <widget class="QLabel" name="name_label">
60
 
              <property name="text">
61
 
               <string/>
62
 
              </property>
63
 
             </widget>
64
 
            </item>
65
 
            <item>
66
 
             <widget class="QLineEdit" name="name_edit">
67
 
              <property name="placeholderText">
68
 
               <string/>
69
 
              </property>
70
 
             </widget>
71
 
            </item>
72
 
            <item>
73
 
             <widget class="QLabel" name="email_label">
74
 
              <property name="text">
75
 
               <string/>
76
 
              </property>
77
 
             </widget>
78
 
            </item>
79
 
            <item>
80
 
             <widget class="QLineEdit" name="email_edit">
81
 
              <property name="placeholderText">
82
 
               <string/>
83
 
              </property>
84
 
             </widget>
85
 
            </item>
86
 
            <item>
87
 
             <widget class="QLabel" name="confirm_email_label">
88
 
              <property name="text">
89
 
               <string/>
90
 
              </property>
91
 
             </widget>
92
 
            </item>
93
 
            <item>
94
 
             <widget class="QLineEdit" name="confirm_email_edit">
95
 
              <property name="placeholderText">
96
 
               <string/>
97
 
              </property>
98
 
             </widget>
99
 
            </item>
100
 
            <item>
101
 
             <widget class="QLabel" name="password_label">
102
 
              <property name="text">
103
 
               <string/>
104
 
              </property>
105
 
             </widget>
106
 
            </item>
107
 
            <item>
108
 
             <widget class="QLineEdit" name="password_edit">
109
 
              <property name="toolTip">
110
 
               <string>Your password must be at least 8 characters long and at least contain one number and one upper later.</string>
111
 
              </property>
112
 
              <property name="statusTip">
113
 
               <string/>
114
 
              </property>
115
 
              <property name="echoMode">
116
 
               <enum>QLineEdit::Password</enum>
117
 
              </property>
118
 
              <property name="placeholderText">
119
 
               <string/>
120
 
              </property>
121
 
             </widget>
122
 
            </item>
123
 
            <item>
124
 
             <widget class="QLabel" name="confirm_password_label">
125
 
              <property name="text">
126
 
               <string/>
127
 
              </property>
128
 
             </widget>
129
 
            </item>
130
 
            <item>
131
 
             <widget class="QLineEdit" name="confirm_password_edit">
132
 
              <property name="echoMode">
133
 
               <enum>QLineEdit::Password</enum>
134
 
              </property>
135
 
              <property name="placeholderText">
136
 
               <string/>
137
 
              </property>
138
 
             </widget>
139
 
            </item>
140
 
           </layout>
141
 
          </item>
142
 
          <item>
143
272
           <layout class="QVBoxLayout" name="verticalLayout_9">
144
273
            <item>
145
274
             <widget class="QFrame" name="frame_2">