Skip to content

Commit b3a2518

Browse files
committed
Removing updatePassword as it is already included in flutter#678
1 parent 0f31ddb commit b3a2518

File tree

4 files changed

+0
-48
lines changed

4 files changed

+0
-48
lines changed

packages/firebase_auth/android/src/main/java/io/flutter/plugins/firebaseauth/FirebaseAuthPlugin.java

Lines changed: 0 additions & 13 deletions
Original file line numberDiff line numberDiff line change
@@ -78,9 +78,6 @@ public void onMethodCall(MethodCall call, Result result) {
7878
case "reload":
7979
handleReload(call, result);
8080
break;
81-
case "updatePassword":
82-
handleUpdatePassword(call, result);
83-
break;
8481
case "delete":
8582
handleDelete(call, result);
8683
break;
@@ -317,16 +314,6 @@ private void handleReload(MethodCall call, final Result result) {
317314
.addOnCompleteListener(new TaskVoidCompleteListener(result));
318315
}
319316

320-
private void handleUpdatePassword(MethodCall call, final Result result) {
321-
@SuppressWarnings("unchecked")
322-
Map<String, String> arguments = (Map<String, String>) call.arguments;
323-
String password = arguments.get("password");
324-
firebaseAuth
325-
.getCurrentUser()
326-
.updatePassword(password)
327-
.addOnCompleteListener(new TaskVoidCompleteListener(result));
328-
}
329-
330317
private void handleDelete(MethodCall call, final Result result) {
331318
firebaseAuth
332319
.getCurrentUser()

packages/firebase_auth/ios/Classes/FirebaseAuthPlugin.m

Lines changed: 0 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -118,12 +118,6 @@ - (void)handleMethodCall:(FlutterMethodCall *)call result:(FlutterResult)result
118118
[[FIRAuth auth].currentUser reloadWithCompletion:^(NSError *_Nullable error) {
119119
[self sendResult:result forProviders:nil error:error];
120120
}];
121-
} else if ([@"updatePassword" isEqualToString:call.method]) {
122-
NSString *password = call.arguments[@"password"];
123-
[[FIRAuth auth].currentUser updatePassword:password
124-
completion:^(NSError *_Nullable error) {
125-
[self sendResult:result forProviders:nil error:error];
126-
}];
127121
} else if ([@"delete" isEqualToString:call.method]) {
128122
[[FIRAuth auth].currentUser deleteWithCompletion:^(NSError *_Nullable error) {
129123
[self sendResult:result forProviders:nil error:error];

packages/firebase_auth/lib/firebase_auth.dart

Lines changed: 0 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -90,14 +90,6 @@ class FirebaseUser extends UserInfo {
9090
await FirebaseAuth.channel.invokeMethod('reload');
9191
}
9292

93-
/// Updates the password of the user.
94-
Future<void> updatePassword(String password) async {
95-
assert(password != null);
96-
await FirebaseAuth.channel.invokeMethod('updatePassword', <String, String>{
97-
'password': password,
98-
});
99-
}
100-
10193
/// Deletes the user record from your Firebase project's database.
10294
Future<void> delete() async {
10395
await FirebaseAuth.channel.invokeMethod('delete');

packages/firebase_auth/test/firebase_auth_test.dart

Lines changed: 0 additions & 21 deletions
Original file line numberDiff line numberDiff line change
@@ -320,27 +320,6 @@ void main() {
320320
);
321321
});
322322

323-
test('updatePassword', () async {
324-
final FirebaseUser user = await auth.currentUser();
325-
await user.updatePassword(kMockUpdatePassword);
326-
327-
expect(
328-
log,
329-
<Matcher>[
330-
isMethodCall(
331-
'currentUser',
332-
arguments: null,
333-
),
334-
isMethodCall(
335-
'updatePassword',
336-
arguments: <String, String>{
337-
'password': kMockUpdatePassword,
338-
},
339-
),
340-
],
341-
);
342-
});
343-
344323
test('delete', () async {
345324
final FirebaseUser user = await auth.currentUser();
346325
await user.delete();

0 commit comments

Comments
 (0)